Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2008
    Posts
    9
    Plugin Contributions
    0

    Default Add to Cart Not Appearing with Products with Attributes. Please help me!?!?

    Hello. My first post I am wondering if there is somebody out there who may be able to help me with my problem!?

    My site is almost ready to go live after too many months of work. I have found that all my products with attributes, will not show an add to cart button, a "tell a friend" button, or anything at all actually after the product description. I have attached a screen shot to show you. It is as if the page ends after the product description.

    I have worked out that when I remove attributes from my product, the add to cart button appears and works normally. So I am really stumped.

    Things I have done recently was to try and get the add to cart button to sit on the same line as the quantity box. I do not recall any other changes. I made this change according to one of the threads that discusses this: http://www.zen-cart.com/forum/showthread.php?t=85334.
    Thinking that this might be the problem, I re-uploaded a fresh product_info_display.php, but to no avail.

    I then removed all the attributes I created, and then re-assigned them to my products, but the same problem reappeared.

    I don't know what else to do... I have worked on this for two days straight and am pretty desperate, so I would really love and appreciate any help whatsoever!

  2. #2
    Join Date
    Jun 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Add to Cart Not Appearing with Products with Attributes. Please help me!?!?

    G'day again! I forgot to add the screen shot!

    Cheers : )


  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Add to Cart Not Appearing with Products with Attributes. Please help me!?!?

    The screenshot can't really help us diagnose the problem. We need a link to the site to see it in action and check some of the underlying code.

  4. #4
    Join Date
    Jun 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Add to Cart Not Appearing with Products with Attributes. Please help me!?!?

    Ok... I have taken the lock off my store... Here is the link to the specific page I am having problems with.

    http://raw-organique.com.au/store/in...&products_id=1

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Add to Cart Not Appearing with Products with Attributes. Please help me!?!?

    The output does cut off just after the beginning of /includes/templates/your_template/templates/tpl_modules_attributes.php.
    View Source:
    HTML Code:
    <!--bof Attributes Module -->
    <div id="productAttributes">
    and the stock tpl_modules_attributes.php:
    PHP Code:
     * @version $Id: tpl_modules_attributes.php 3208 2006-03-19 16:48:57Z birdbrain $
     */
    ?>
    <div id="productAttributes">
    <?php if ($zv_display_select_option 0) { ?>
    <h3 id="attribsOptionsText"><?php echo TEXT_PRODUCT_OPTIONS?></h3>
    <?php // show please select unless all are readonly ?>
    So what does that part of your file copy look like?

  6. #6
    Join Date
    Jun 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Add to Cart Not Appearing with Products with Attributes. Please help me!?!?

    Thanks a lot Glenn for your help...

    Mine does look very different???

    PHP Code:
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_modules_attributes.php 3208 2006-03-19 16:48:57Z birdbrain $
     */
    ?>
    <div id="productAttributes">
    <?php if ($zv_display_select_option 0) { ?>
    <?php
    $products_attributes 
    $db->Execute("select count(distinct products_options_id) as total from " TABLE_PRODUCTS_OPTIONS " popt, " TABLE_PRODUCTS_ATTRIBUTES " patrib where patrib.products_id='" . (int)$_GET['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = ". (int)$_SESSION['languages_id'] ."");


         if (
    $products_attributes->fields['total'] > 1)  {
        
          
    $products_id=(preg_match("/^\d{1,10}(\{\d{1,10}\}\d{1,10})*$/",$_GET['products_id']) ? $_GET['products_id'] : (int)$_GET['products_id']); 
         require(
    DIR_WS_CLASSES 'pad_' PRODINFO_ATTRIBUTE_PLUGIN_MULTI '.php');
          
    $class 'pad_' PRODINFO_ATTRIBUTE_PLUGIN_MULTI;

         
    $pad = new $class($products_id);
         
         echo 
    $pad->draw();

      }
      elseif (
    $products_attributes->fields['total'] > 0)  {
        
          
    $products_id=(preg_match("/^\d{1,10}(\{\d{1,10}\}\d{1,10})*$/",$_GET['products_id']) ? $_GET['products_id'] : (int)$_GET['products_id']); 
         require(
    DIR_WS_CLASSES 'pad_' PRODINFO_ATTRIBUTE_PLUGIN_SINGLE '.php');
          
    $class 'pad_' PRODINFO_ATTRIBUTE_PLUGIN_SINGLE;

         
    $pad = new $class($products_id);
         
         echo 
    $pad->draw();
      }


    ?>

    <?php
    if ($options_attributes_image[$i] != '') {
    ?>
    <?php 
    echo $options_attributes_image[$i]; ?>
    <?php
    }
    ?>
    <br class="clearBoth" />
    <?php
        
    }
    ?>


    <?php
      
    if ($show_onetime_charges_description == 'true') {
    ?>
        <div class="wrapperAttribsOneTime"><?php echo TEXT_ONETIME_CHARGE_SYMBOL TEXT_ONETIME_CHARGE_DESCRIPTION?></div>
    <?php ?>


    <?php
      
    if ($show_attributes_qty_prices_description == 'true') {
    ?>
        <div class="wrapperAttribsQtyPrices"><?php echo zen_image(DIR_WS_TEMPLATE_ICONS 'icon_status_green.gif'TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK1010) . '&nbsp;' '<a href="javascript:popupWindowPrice(\'' zen_href_link(FILENAME_POPUP_ATTRIBUTES_QTY_PRICES'products_id=' $_GET['products_id'] . '&products_tax_class_id=' $products_tax_class_id) . '\')">' TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK '</a>'?></div>
    <?php ?>
    </div>

  7. #7
    Join Date
    Jun 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Add to Cart Not Appearing with Products with Attributes. Please help me!?!?

    Okay... So I am not sure where that version of the file came from, because it was in my "downloads"!!! But I found the version you showed and re uploaded it and it is PERFECT!!! Thank you so much for your help. I held off asking because I thought I'd just start my site all over again...

    My hero! THANKS

  8. #8
    Join Date
    Jun 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Add to Cart Not Appearing with Products with Attributes. Please help me!?!?

    Just one qn though... Have you seen that version of tpl_modules_attributes.php?

    I believe it may have been part of the dynamic dropdowns contrib. Do you know what the repercussions will be for replacing it with the stock standard version?

    Cheers... Annaliese

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Add to Cart Not Appearing with Products with Attributes. Please help me!?!?

    I don't know exactly what the dynamic dropdowns mod does in relation to attributes, but I expect the file substitution will make it nonfunctional.

    Since the first difference in the file is a database call, it would seem that something is going wrong there. You may have an improperly uploaded file, or an error in a SQL patch for that mod. You might try uninstalling and reuploading and reinstalling the mod. Did the mod ever work correctly?

  10. #10
    Join Date
    Jun 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Add to Cart Not Appearing with Products with Attributes. Please help me!?!?

    Yes it did work a while back. I installed it pretty much the same time as I installed the attributes mod, so I actively checked it all out and would def. have noticed something odd about it, like the half the page missing... but I honestly can't say when it stopped working. I've been jumping in and out of this project and work on it only when I can, so when it stopped working? Can't say...

    I will do as you suggest and uninstall & reinstall the dynamic dropdowns mod and see how it goes now...

 

 

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. add to cart button on product listing (for products with attributes)
    By easy3dsource in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 10 Apr 2011, 06:08 PM
  3. Add to Cart button not appearing on products w/attributes
    By marleyman in forum General Questions
    Replies: 7
    Last Post: 20 Sep 2010, 05:52 PM
  4. How do I add multiple products with attributes to the cart at once?
    By DavidIIM in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 Jul 2010, 05:25 AM
  5. 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

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