Page 14 of 17 FirstFirst ... 41213141516 ... LastLast
Results 131 to 140 of 166
  1. #131
    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

  2. #132
    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

  3. #133
    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

  4. #134
    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

  5. #135

    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!

  6. #136

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

    Oh, and if anybody like the 'click to edit' text but only wants it to appear if the item has attributes, change the following line in tpl_shopping_cart_default.php from:

    <a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<br />[click to edit]' . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>

    to:

    <a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle">
    <?php echo $product['productsName'];
    if(!empty($product['attributes'])) {
    echo '<br />[click to edit]';
    }
    echo '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>

  7. #137
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    2

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

    Hi Damian,

    Thanks so much for those changes, it's really great. I am a bit slow off the mark with zencart with these days, but I will add those changes to the editcart mod asap.


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

  8. #138

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

    No problem Justin; I'm happy to give something back!
    It's normally me asking for help

  9. #139
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    2

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

    I updated the edit cart mod about 2 weeks ago, but it took a while to be approved by the zen cart team.

    This change is basically to add support for Ceon URI mapping (thanks Damian), and a tidy up of the documentation.

    Edit Cart is now known to support two SEO mods:
    Ceon URI mapping and Ultimate SEO

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

  10. #140

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

    I have installed it and like this mod however just a slight problem that i can see in terms of user functionality.

    On my site i sell outdoor apparel and if someone buys a jacket in a size / colour combo and goes to the cart then decided they want another one they will click on their chosen product and go back to the product info page. However they can only edit the 1 item in their cart and not add further variations of this product to their purchase.

    My issue is what if they want to order another size / colour combo of the same product as a second item?

    i.e. they buy jacket a in black small, how do they then buy jacket a in navy medium?

 

 
Page 14 of 17 FirstFirst ... 41213141516 ... 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