Page 15 of 17 FirstFirst ... 51314151617 LastLast
Results 141 to 150 of 166
  1. #141
    Join Date
    Sep 2007
    Posts
    77
    Plugin Contributions
    2

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

    Thanks for your comment, DVDTitan.

    Yes, that is something that we could improve. Currently you have to go back to the product listing, and select the product again.

    Do you think a link beneath the item in the cart, that says something like, [Choose another] would be what you are after?

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

  2. #142

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

    Hi Justin

    Thanks for the reply. Yes your idea would be perfect.

    Whilst the edit cart function in its current state removes the hassle of editing an item in the cart it creates an issue in adding different variations of the same product to a customers order.

    An add to cart underneath the edit button would solve this.

    Thanks once again.

  3. #143
    Join Date
    Aug 2007
    Posts
    31
    Plugin Contributions
    0

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

    Quote Originally Posted by damiantaylor View Post
    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>
    I have the model number in my string of original code and am not sure how to incorporate the attribute addition into the code. I do not know code well and each time I try to include the newest snippet of code into my code, the shopping cart disappears and I receive a blank page.

    Can you tell me how I should modify the code?

    My string of code is below:
    <a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle" style="color: rgb(0, 0, 255)">
    <?php echo $product['productsName'] . ' ' . zen_products_lookup($product['id'], 'products_model') . '<br />[Click to Personalize]' . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>

    Thanks,
    Mkopecky

  4. #144
    Join Date
    Feb 2009
    Posts
    186
    Plugin Contributions
    1

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

    has anybody gotten this to work with 1.3.9?

    i have tried and everytime you edit the cart it just keeps adding more products. i took the mod out but if someone could test it and maybe let me know how to get it to work that would be great.

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

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

    In edit_cart_v1.3 (good for v138a), the two main files to edit are
    /includes/templates/template_default/templates/tpl_product_info_display.php
    /includes/templates/template_default/templates/tpl_shopping_cart_default.php

    In
    /includes/templates/template_default/templates/tpl_product_info_display.php
    Line 19 of v139c is now
    echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product', $request_type), 'post', 'enctype="multipart/form-data"') . "\n";

    Incorporating edit_cart_v1.3, this line is replaced by

    echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=' . $cartAction), 'post', 'enctype="multipart/form-data"') . "\n";

    However in
    /includes/templates/template_default/templates/tpl_shopping_cart_default.php
    Line 33 of v139c is now
    <?php echo zen_draw_form('cart_quantity', zen_href_link(FILENAME_SHOPPING_CART, 'action=update_product', $request_type)); ?>

    My question is: should there also be a $request_type, or something similar, in tpl_product_info_display.php, or has 139c tpl_shopping_cart_default.php taken care of this.
    Last edited by dw08gm; 26 May 2010 at 12:18 PM. Reason: color coding

  6. #146
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    Using the $request_type is just a good way to avoid any issues with submits on a page that might be SSL based on moving between the secure pages and non-secure pages ...

    Most places where this occurs have been addressed ... there are still a few others that we will catch over time ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

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

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

    Quote Originally Posted by Ajeh View Post
    Using the $request_type is just a good way to avoid any issues with submits on a page that might be SSL based on moving between the secure pages and non-secure pages ...

    Most places where this occurs have been addressed ... there are still a few others that we will catch over time ...
    Hi Ajeh

    Is this one instance yet to be resolved or of no great consequence.

    TIA

  8. #148
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    I would add it for the products _info page as people do login from there then want to Add a Product to the cart if they return and are on secure or do a search or look at products by manufacturers etc.
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #149
    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

    In Line 19 of the modified
    /includes/templates/template_default/templates/tpl_product_info_display.php
    is it OK to add , $request_type immediately after $cartAction, as with

    Code:
    echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=' . $cartAction, $request_type), 'post', 'enctype="multipart/form-data"') . "\n";
    or should $request_type go elsewhere in this line?

    TIA

  10. #150
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    It should work ...

    Have you tried it?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 15 of 17 FirstFirst ... 51314151617 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