Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Moving Add to Cart module doesn't affect all products

Moving Add to Cart module doesn't affect all products

Locked

Views: 1,358

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
2 Feb 2010, 4:55 PM
#1
seian avatar

seian

New Zenner

Join Date:
Oct 2009
Posts:
27
Plugin Contributions:
0

Moving Add to Cart module doesn't affect all products

I successfully moved the Add to Cart module as found in the tpl_product_info_display.php file. However I'm finding not all products are seeing this effect work. You can tell those pages where it's pulling the tpl_product_info_display.php properly. I added a comment tag in the page to remind me where I moved the cart module from ( <!--WHERE ATTRIBUTES MODULE WAS --> )

The only products unaffected by the change I want, are those that have free shipping.

The way it should be (and is on most products) with the attributes before the add to cart: http://titanichistoricalsociety.net/store/index.php?main_page=product_info&cPath=69&products_id=588

The way it is in free shipping items: http://titanichistoricalsociety.net/store/index.php?main_page=product_free_shipping_info&cPath=78&products_id=183

Is there a different template for free shipping items that I must edit? It's really puzzling.

2 Feb 2010, 5:26 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Moving Add to Cart module doesn't affect all products

It appears that your free ship is set to use another tpl file
Look for an override, or ??
I am not aware of one that is default for free ship

Looking at the view source for each page

For free ship

<!--eof Product description -->
<br class="clearBoth" />
<!--bof Add to Cart Box -->
      <div id="cartAdd">
    Add to Cart: <input type="text" name="cart_quantity" value="1" maxlength="6" size="4" /><br /><br /><input type="hidden" name="products_id" value="183" /><input type="image" src="includes/templates/cold_steel/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " />          </div>
  <!--eof Add to Cart Box-->
<!--bof Product details list  -->
<ul id="productDetailsList" class="floatingBox back">
  <li>Model: BronzeMember</li>
</ul>
<br class="clearBoth" />
<!--eof Product details list -->
<!--bof Attributes Module -->
<div id="productAttributes">
<h3 id="attribsOptionsText">Please Choose:</h3>
<div class="wrapperAttribsOptions">
<h4 class="optionName back"><label class="attribsSelect" for="attrib-5">Membership</label></h4>
<div class="back">
<select name="id[5]" id="attrib-5">
  <option value="31" selected="selected">New membership</option>
  <option value="32">Renewing membership</option>
  <option value="36">Gift membership</option>
</select>
</div>
<br class="clearBoth" />
</div>
<br class="clearBoth" />
<div class="wrapperAttribsOptions">
<h4 class="optionName back"><label class="attribsSelect" for="attrib-26">Donation Amount</label></h4>
<div class="back">
<select name="id[26]" id="attrib-26">
  <option value="103" selected="selected">None</option>
  <option value="104">$25.00 ( +$25.00 )</option>
  <option value="105">$100.00 ( +$100.00 )</option>
  <option value="106">$200.00 ( +$200.00 )</option>
  <option value="107">$250.00 ( +$250.00 )</option>
  <option value="108">$300.00 ( +$300.00 )</option>
  <option value="109">$500.00 ( +$500.00 )</option>
  <option value="110">$750.00 ( +$750.00 )</option>
  <option value="111">$1000.00 ( +$1,000.00 )</option>
</select>
</div>
<br class="clearBoth" />
</div>
<br class="clearBoth" />
<div class="wrapperAttribsOptions">
<h4 class="optionName back"><label class="attribsInput" for="attrib-27-0">Special Instructions</label></h4>
<div class="back">
  <input disabled="disabled" type="text" name="remainingtxt_27" size="3" maxlength="3" value="500" />  maximum characters allowed<br /><textarea class="attribsTextarea" name="id[txt_27]" rows="3" cols="32" onkeydown="characterCount(this.form['id[txt_27]'],this.form.remainingtxt_27,500);" onkeyup="characterCount(this.form['id[txt_27]'],this.form.remainingtxt_27,500);" id="attrib-27-0" ></textarea>
</div>
<br class="clearBoth" />
</div>
<br class="clearBoth" />
</div><!--eof Attributes Module -->

For the correct item:

<!--bof Attributes Module -->
<div id="productAttributes">
<h3 id="attribsOptionsText">Please Choose: </h3>
<div class="wrapperAttribsOptions">
<h4 class="optionName back"><label class="attribsSelect" for="attrib-21">Jewelry</label></h4>
<div class="back">
<select name="id[21]" id="attrib-21">
  <option value="71">Earrings</option>
  <option value="72">Necklace ( +$94.00 )</option>
  <option value="73" selected="selected">Earrings and Necklace ( +$119.00 )</option>
</select>
</div>
<br class="clearBoth" />
</div>
<br class="clearBoth" />
</div><!--eof Attributes Module -->
<!--bof Add to Cart Box -->
                  <div id="cartAdd">
    Add to Cart: <input type="text" name="cart_quantity" value="1" maxlength="6" size="4" /><br /><br /><input type="hidden" name="products_id" value="588" /><input type="image" src="includes/templates/cold_steel/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " />          </div>
  <!--eof Add to Cart Box-->
<!--bof Product details list  -->
9 Feb 2010, 1:20 PM
#3
seian avatar

seian

New Zenner

Join Date:
Oct 2009
Posts:
27
Plugin Contributions:
0

Re: Moving Add to Cart module doesn't affect all products

Sorry to take so long to reply. The site had launched so I was going through a bunch of other things.

What I'll do is search the php files for those lines of code specific to the free ship ones then and see what I come up with. I couldn't be sure either if there was a php file just for those free ship items. Maybe it's because the free ship item puts in that "Free shipping!" icon so it has it's own layout include. Could be what's doing it. I'll report back when I figure it out.