Page 1 of 2 12 LastLast
Results 1 to 10 of 166

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    2

    Default Re: Editing cart contents -- esp products with attributes

    Actually, I just went off and did something else (put down the futons) and then I realized there is a way.

    If you alter the link used in the tpl_shopping_cart_default.php template file so that it doesn't go through the Simple SEO mod, then it will work. That will probably mean hacking the /includes/modules/pages/shopping_cart/header_php.php file, though it might be possible to duplicate the default link making function for product info pages into your template file.

    If you follow what I am saying then maybe you can make those changes yourself. If not, I can probably do it for you. But we would probably need to have a discussion via PM about it.

    Justin
    ============
    Kuroobiya - Personalized Karate Black Belts and Dogi
    Kanebo From Japan - Kanebo Cosmetics Direct From Japan

  2. #2
    Join Date
    Oct 2004
    Location
    Ontario
    Posts
    116
    Plugin Contributions
    1

    Default Re: Editing cart contents -- esp products with attributes

    How do we create a link (programmically) that does not get processed by the SSU module? Is there a special call to zen_href_link we can make?

  3. #3
    Join Date
    Mar 2008
    Location
    Nashville, TN
    Posts
    21
    Plugin Contributions
    0

    Default Re: Editing cart contents -- esp products with attributes

    Justin - Flipside (who just responded before me) is working with us on this issue. Thanks so much for all your help!!

    Dasha

  4. #4
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    2

    Default Re: Editing cart contents -- esp products with attributes

    SSU takes over the zen_href_link functionality, so you will either need to:
    i) find out where SSU does that, and add a hook of some sort, that calls from the shopping cart can make use of to avoid being SSU'd.

    or

    ii) create a copy of the original zen_href_link function or logic, call it say zen_href_link_nossu, and call that instead from the shopping cart.

    They would be the approaches I would look at. To me ii) looks better because you would be able to update SSU in the future without breaking your code. And it might be easier, thout\g without getting into it is hard to say.

    Good luck.
    ============
    Kuroobiya - Personalized Karate Black Belts and Dogi
    Kanebo From Japan - Kanebo Cosmetics Direct From Japan

  5. #5
    Join Date
    Oct 2004
    Location
    Ontario
    Posts
    116
    Plugin Contributions
    1

    Default Re: Editing cart contents -- esp products with attributes

    Nope... that doesn't solve the issue.

  6. #6
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    2

    Default Re: Editing cart contents -- esp products with attributes

    Um, what doesn't solve what issue?

    What did you do?

    And after you did it, did the url to the product info page from the shopping cart look like a standard url or like an Simple SEO mod url?
    Or did it change the url correctly but not change the behaviour on the product info page?

    Justin
    ============
    Kuroobiya - Personalized Karate Black Belts and Dogi
    Kanebo From Japan - Kanebo Cosmetics Direct From Japan

  7. #7
    Join Date
    Aug 2007
    Posts
    31
    Plugin Contributions
    0

    Default Re: Editing cart contents -- esp products with attributes

    Quote Originally Posted by justinhunt View Post
    Actually, I just went off and did something else (put down the futons) and then I realized there is a way.

    If you alter the link used in the tpl_shopping_cart_default.php template file so that it doesn't go through the Simple SEO mod, then it will work. That will probably mean hacking the /includes/modules/pages/shopping_cart/header_php.php file, though it might be possible to duplicate the default link making function for product info pages into your template file.

    If you follow what I am saying then maybe you can make those changes yourself. If not, I can probably do it for you. But we would probably need to have a discussion via PM about it.

    Justin
    Hi Justin,
    Great mod. The edit cart is exactly what we are looking for. I installed it and it works great as long as I have our Ultimate SEO mod turned off. If I turn Ultimate SEO on I receive a page not found when I attempt to edit a product's attributes. As mentioned above, it looks like there were some users who had an issue with the Simple SEO mod. Do you know if there is a fix? I wasn't sure what was meant by the above comment regarding hacking the header.php file. any advice on how to use Ultimate SEO along with edit cart would be great.
    Thanks,
    M

  8. #8
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    2

    Default Re: Editing cart contents -- esp products with attributes

    Hi mkopecky

    The thing is that there is really no problem with edit cart. The problem is with the way the SEO mods, make their urls.

    On our kuroobiya site, here is a link to the product page for a karate uniform:
    http://kuroobiya.com/shop/index.php?...products_id=48

    Now if we set some attributes and head off to the shopping cart page, the link to return to the product info page looks like this:
    http://kuroobiya.com/shop/index.php?...1c580eb95c0d1b

    The trailing string at the end, on the second link, contains the information about the attributes that were selected. This is all standard zencart, there are no modifications here.

    So if you want to modify the attributes you selected you click on the link in the shopping cart and head back to the product info page. Editcart doesn't change this either. Only once you get to the productinfo page, Editcart looks for the trailing string and turns the page into an Edit page (as opposed to an add page).

    BUT the SEO mods remove the trailing string, so it is not there.
    You can see this even without editcart. In standard zen cart the attributes previously selected , say size, color, will be selected on the return to the product info page from clicking on the shopping cart link. ( But in standard zen cart of course there is no edit button, only an add button on that page). However if you use an SEO mod none of the pre selected attributes will be selected in the product info page on the return there. That information just gets thrown away.

    The solution I proposed earlier was to change the tpl_shopping_cart_default.php template file so that the links generated there do not go through the SEO mod, but are produced like standard zen cart links. This would work, but you need to do some coding.

    I honestly do not have time to just do that from the goodness of my heart, I moved on long ago, and am working on other things now that take up most of my time. But I know that some people need this functionality. So if someone who can code, can get in there and do it, I would be grateful.

    Otherwise if I am to do it, well I will just have to put out my hand and say PM me.

    I hope that I have explained the problem ok. If it is still unclear, please let me know. Good luck

    Justin
    Last edited by justinhunt; 1 Aug 2009 at 01:11 AM.
    ============
    Kuroobiya - Personalized Karate Black Belts and Dogi
    Kanebo From Japan - Kanebo Cosmetics Direct From Japan

  9. #9
    Join Date
    Aug 2007
    Posts
    31
    Plugin Contributions
    0

    Default Re: Editing cart contents -- esp products with attributes

    Hi Justin,
    Thanks for the reply and the additional information. I knew it would involve some coding, but wasn't sure what. I'll send you a pm.
    Thanks
    mkopecky

  10. #10

    Default Re: Editing cart contents -- esp products with attributes

    This is a great mod that has been broken by using an SEO mod like many others have experienced.
    I am using Ceon URI Mapping and don't know if the following fix will work for any other SEO mods but it seems to work for me :)

    In tpl_product_info_display.php, change:

    //add Justin Edit_Cart Mod 20080224
    if(is_numeric($_GET['products_id'])) {
    $cartAction="add_product";
    }else{
    $cartAction = "edit_product_in_cart";
    }

    to:

    //add Justin Edit_Cart Mod 20080224
    if($_SERVER['QUERY_STRING'][0] == ':') {
    $_GET['products_id'] = $_GET['products_id'] . $_SERVER['QUERY_STRING'];
    }


    if(is_numeric($_GET['products_id'])) {
    $cartAction="add_product";
    }else{
    $cartAction = "edit_product_in_cart";
    }

    The bit in red is what you need to add.
    All it does is rebuild the products_id value that should be passed through to the product info page but gets stripped out by the SEO mod.

    Let me know if anybody spots a problem with this fix please!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Add multiple products with attributes to cart with single click
    By mark777 in forum General Questions
    Replies: 1
    Last Post: 16 May 2013, 08:33 AM
  2. Products with Attributes - Instant Add to Cart with PopUp?
    By ksoup in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 20 Jun 2009, 05:52 PM
  3. Add to Cart Not Appearing with Products with Attributes. Please help me!?!?
    By alegria in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 26 Jun 2008, 11:46 PM
  4. Replies: 2
    Last Post: 3 May 2008, 10:42 AM
  5. Shopping Cart contents editing failed
    By debtag in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 25 Feb 2008, 02:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR