Forums / Setting Up Categories, Products, Attributes / Add to Cart Not Appearing with Products with Attributes. Please help me!?!?

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

Locked

Views: 1,871

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
24 Jun 2008, 9:49 AM
#1
alegria avatar

alegria

New Zenner

Join Date:
Jun 2008
Posts:
10
Plugin Contributions:
0

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

Hello. My first post :smile: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!
:no:

25 Jun 2008, 12:15 AM
#2
alegria avatar

alegria

New Zenner

Join Date:
Jun 2008
Posts:
10
Plugin Contributions:
0

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

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

Cheers : )

25 Jun 2008, 2:44 AM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

25 Jun 2008, 3:33 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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:

<!--bof Attributes Module -->
<div id="productAttributes">

and the stock tpl_modules_attributes.php:```php

  • @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?
25 Jun 2008, 4:34 AM
#6
alegria avatar

alegria

New Zenner

Join Date:
Jun 2008
Posts:
10
Plugin Contributions:
0

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???

* @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_LINK, 10, 10) . ' ' . '<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>
25 Jun 2008, 5:06 AM
#7
alegria avatar

alegria

New Zenner

Join Date:
Jun 2008
Posts:
10
Plugin Contributions:
0

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 :hug:

25 Jun 2008, 5:12 AM
#8
alegria avatar

alegria

New Zenner

Join Date:
Jun 2008
Posts:
10
Plugin Contributions:
0

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

26 Jun 2008, 4:55 AM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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?

26 Jun 2008, 10:46 PM
#10
alegria avatar

alegria

New Zenner

Join Date:
Jun 2008
Posts:
10
Plugin Contributions:
0

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...