Page 16 of 17 FirstFirst ... 614151617 LastLast
Results 151 to 160 of 166
  1. #151
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    978
    Plugin Contributions
    6

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

    Hi Ajeh

    I have not yet done so but will tomorrow. Its 2am here atm.

    Generally I try to get an understanding of what something does before committing to it, but I am still very much on the J curve with ZC, and have yet to fully fathom the placement of code.

    Thanks for your feedback and guidance.

  2. #152
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

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

    If a customer does not choose any options when adding an item to the cart, the the id is numeric so the option to edit the item in the cart is not offered. However, the customer may want to go back and select an option.

    I've messed around a bit with this and haven't found a way to offer the chance to go back and add options if none were chosen initially.

    Is there a way around this?

    Note: forcing one option to be selected initially works, but is not appropriate in this case.

    Thanks!

  3. #153
    Join Date
    May 2010
    Posts
    36
    Plugin Contributions
    0

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

    I i installed this mod, but whether it was me or the mod i found that the product image was being displayed twice and so was the product title link.
    I have fixed this by editing the following code in tpl_shopping_cart_default.php around line 85.
    PHP Code:
    //================================Start of Edit_Cart mod Justin =================================================================
    <a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' $product['flagStockCheck'] . '</span>'?></span></a>
    //===============================================================================================================================
    <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> 
    //================================End Edit_Cart mod Justin =================================================================
    That is the code according to the mod, but i changed to the following and now things work fine:
    PHP Code:
           <a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' $product['flagStockCheck'] . '</span>'?></span></a>
    <a href="<?php echo $product['linkProductsName']; ?>"><span id="cartProdTitle">
    <?php
    if(!empty($product['attributes'])) {
    echo 
    '<br />[click to edit]';
    }
    echo 
    '<span class="alert bold">' $product['flagStockCheck'] . '</span>'?></span></a>
    Justin if you still read this it maybe worth modifying your files with this edit if you wish to.

  4. #154
    Join Date
    Jul 2009
    Posts
    127
    Plugin Contributions
    0

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

    I think I've seen this on another store but is there a way to make the image in the shopping cart link to a new version of the item (as the cart is un-modded) and add a link that would edit the item in the cart, ideally reading "Edit Item"?

  5. #155
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    978
    Plugin Contributions
    6

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

    Hi all

    Lines 117-155 in tpl_product_info_display provides for two button options, namely
    BUTTON_IMAGE_EDIT_CART_CONTENTS
    BUTTON_IMAGE_IN_CART

    but where the latter button is defined exactly the same as
    BUTTON_ADD_TO_CART

    which makes me wonder Why?

    However, upon changing the define of BUTTON_IMAGE_IN_CART to something like "Add another to cart", I find the revised button does not load no matter what I do, which also makes me wonder Why?

    I made this change thinking that BUTTON_IMAGE_IN_CART would have been called after editing/updating a product in cart and then pressing the "Continue Shopping" button, but where "Continue Shopping" is in effect a glorified "Back" button.

    So the reason for this post is to discover whether anyone else has made such a change to BUTTON_IMAGE_IN_CART and has got their changed button to load and under what circumstance(s).

    Thanks in advance.

    ps ScriptJunkie - Thanks for your prompt reply regarding this matter in another thread.

    pps otherwise Edit_Cart1.3 works fine for me in 139h.
    Last edited by dw08gm; 14 May 2011 at 08:26 PM. Reason: pps added

  6. #156
    Join Date
    Dec 2009
    Posts
    206
    Plugin Contributions
    2

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

    Fabulous mod! It's working just as it should but I've got one nit-picky question.

    Is there anyway to display the "Quantity in Cart" on products that have attributes, are in the cart and NOT being edited?

    I've looked on a couple of different sites with this mod installed but it isn't showing on any of those sites either.

    I've adjusted the code on tpl_product_info_display.php in my custom folder to read:

    PHP Code:
    <div id="cartAdd">
      <?php if ($display_qty != '' and ($products_qty_box_status == or $products_quantity_order_max == 1)) { 
          echo 
    $display_qty;
          }
          elseif (
    $display_qty != '' and ($products_qty_box_status != or $products_quantity_order_max != 1)){ 
          echo 
    $display_qty;
          echo 
    $display_button;
          }
          else {
          echo 
    $display_button;
          }
       
    ?>
       </div>
    The $display_qty will show on products that meet the first "if" statement criteria (and don't have attributes), but I get nothing on products with attributes that are in the cart.

    I would really appreciate any guidance anyone can provide.

    Thanks in advance (and sorry for all the abandoned carts Justin).
    Last edited by kamelion0927; 4 Jun 2011 at 05:25 AM.

  7. #157
    Join Date
    Dec 2009
    Posts
    206
    Plugin Contributions
    2

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

    Sorry - I've been looking at the code that I've been working on all day and I just realized the reason that it's not displaying "Quantity in Cart" has nothing to do with the "Add to Cart" code - it's because for some reason products that are in the cart that have attributes are not being recognized by tpl_product_info_display.php as such unless you're in "edit mode" (ie the "edit cart contents" button is showing).

    Could this do with the edits to tpl_shopping_cart_default?

    Hmmm....

  8. #158

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

    Quote Originally Posted by justinhunt View Post
    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
    Hi,
    I am using Ultimate SEO urls and the attributes string is still being appended to the urls like http: //mysite.product-name:attributesstring.html for items with attributes in the shopping cart.
    Has anyone got a solution for this?

  9. #159
    Join Date
    Nov 2005
    Posts
    90
    Plugin Contributions
    0

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

    I just wanted to report that I have installed this mod on my ZC v1.3.9h and it DOES work...it works absolutely beautifully!!!

    I did have an issue where I had to delete the commented section from the beginning of the code (the part where Justin begins =====) additionally, for some reason I had 3 instances of the code to add the edit text on the page. I simply removed the upper and lower code and left the middle code there.

    I am not sure if these issues were my fault or not, but I figured I'd mention them here just incase someone else makes the same errors I did.

    Thanks very much for this feature justin as my site relies very much on attributes and customers are very likely to change some of them before completing their orders.
    WONDERFUL MOD!!!

  10. #160
    Join Date
    Jun 2010
    Location
    Crossmolina, Ireland
    Posts
    55
    Plugin Contributions
    1

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

    Has anyone been able to get this to work with Simple SEO? I have noticed that when you delete something from the cart it gives you the long code - http://corset.ie/zen/shopping_cart/p...b3b62b1c15e04a - but still is unable to adjust it useing this mod. Shame, would really love it to work.

 

 
Page 16 of 17 FirstFirst ... 614151617 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