Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Update Qty Button Broken

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-20-2009, 08:24 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Update Qty Button Broken

I think I just need a fresh set of eyes to take a look at nerdseven.com/cart.php (with an item in the cart of course)

I can't seem to get the update cart button to do anything, it's clickable just does not change quantity.

Its something to do with the cart.tpl file, as I reverted to the original as a test and was able to update quantity from that...but after switching back to my customized version it was still broken.

Can anyone take a look for me and see if you can find whats causing this?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #2  
Old 02-21-2009, 04:10 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Update Qty Button Broken

Quote:
Originally Posted by tqualizerman

Can anyone take a look for me and see if you can find whats causing this?

Not without seeing your cart.tpl.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 02-21-2009, 05:39 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Update Qty Button Broken

Thanks JSwait, can you detect anything that might be causing this issue?

Code:
{* $Id: cart.tpl,v 1.95.2.7 2008/04/07 14:02:15 ferz Exp $ *} {if $active_modules.Product_Options} {include file="main/include_js.tpl" src="modules/Product_Options/edit_product_options.js"} {/if} {$lng.nerdseven} <font class="catsubheading">{$lng.lbl_your_shopping_cart}</font><br><br> {if $cart ne ''} <font class="proddesc">{$lng.txt_cart_header}</font><br><br> {if $active_modules.Gift_Certificates ne ""} {$lng.txt_cart_note} {/if} {/if} {*** On Sale :: alteredcart.com ***} {if $active_modules.On_Sale} {include file="modules/On_Sale/onsale_dialog.tpl"}{/if} {*** END On Sale :: alteredcart.com ***}<hr> {*BCSE Begin*} {if $total_cart_points gt 0} <center><font class="FormButton">Total {$lng.lbl_nerdbucks} earned for this Purchase: {$total_cart_points}.00 [<span class="nerdbuckslink"><a href="nerdbucks/" target=_new>Huh?</a></span>]</font></center><hr> {/if} {*BCSE End*} {capture name=dialog} {if $products ne ""} <form action="cart.php" method="post" name="cartform"> <table width="100%" cellpadding=0 cellspacing=0> {section name=product loop=$products} {if $products[product].hidden eq ""} <tr><td class="PListImgBox"> <a href="product.php?productid={$products[product].productid}">{if $products[product].is_pimage eq 'W' }{assign var="imageid" value=$products[product].variantid}{else}{assign var="imageid" value=$products[product].productid}{/if}{include file="product_thumbnail.tpl" productid=$imageid image_x=75 product=$products[product].product tmbn_url=$products[product].pimage_url type=$products[product].is_pimage}</a> {if $active_modules.Special_Offers ne "" and $products[product].have_offers} {include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]} {/if} </td> <td valign="top"> <table cellpadding="0" cellspacing="0" width="100%"><tr> <td class="subheading"> {$products[product].product}&nbsp;{if $products[product].product_options ne ""} {include file="modules/Product_Options/display_options.tpl" options=$products[product].product_options}{/if}{if $products[product].preorder_backorder eq "B"}&nbsp;(Backordered){elseif $products[product].preorder_backorder eq "P"}&nbsp;(Preordered){/if} {*BCSE Modified*} <p /> </td></tr> <tr><td class="proddesccart" style="padding-top: 13px;"> {$products[product].descr|truncate:100:"...":true}<br><br> </td></tr></table> {assign var="price" value=$products[product].display_price} {if $active_modules.Product_Configurator ne "" and $products[product].product_type eq "C"} {include file="modules/Product_Configurator/pconf_customer_cart.tpl" main_product=$products[product]} {assign var="price" value=products[product].pconf_display_price} {/if} <div align="left"> {if $active_modules.Subscriptions ne "" and $products[product].sub_plan ne "" and $products[product].product_type ne "C"} {include file="modules/Subscriptions/subscription_priceincart.tpl" product=$products[product]} {else} {if $active_modules.Special_Offers} {include file="modules/Special_Offers/customer/cart_price_special.tpl"} {/if} <table border=0 cellspacing=0 cellpadding=0> <td valign=top align=left> <font class="ProductPriceConverting">{include file="currency.tpl" value=$price}{if $products[product].ship_price}&nbsp;({include file="currency.tpl" value=$products[product].ship_price}){/if} x {if $active_modules.Egoods and $products[product].distribution}1<input type="hidden"{else}<input type="text" size="3"{/if} name="productindexes[{$products[product].cartid}]" value="{$products[product].amount}" /> = </font><font class="ProductPrice">{math equation="price*amount" price=$price amount=$products[product].amount format="%.2f" assign=unformatted}{include file="currency.tpl" value=$unformatted}{if $products[product].ship_total}&nbsp;({include file="currency.tpl" value=$products[product].ship_total}){/if}</font><font class="MarketPrice"> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$unformatted}{if $products[product].ship_total}&nbsp;{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].ship_total}{/if}</font> </td> {*BCSE Begin*} {if $products[product].ship_price} {$lng.txt_preorder_nocharge} <BR> <BR> {/if} {*BCSE End*} <td valign=top class="deletebuttonpadding"> {include file="buttons/delete_item.tpl" href="cart.php?mode=delete&amp;productindex=`$products[product].cartid`"} </td> </table> {if $config.Taxes.display_taxed_order_totals eq "Y" and $products[product].taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes is_subtax=true} {/if} {* On Sale :: alteredcart.com *} {if $products[product].onsale.onsaleid} <img src="{$ImagesDir}/sale_tag.gif" alt="{$lng.lbl_os_onsale}" width="28" height="20" align="top"><span style="color:#FF0000; font-weight:bold;">{$lng.lbl_os_onsale}</span>{/if} {* END On Sale :: alteredcart.com *} {if $active_modules.Special_Offers} {include file="modules/Special_Offers/customer/cart_free.tpl"} {/if} {/if} <br /> <br /> <table cellspacing="0" cellpadding="0" align=right> <tr> <td class="ButtonsRow" valign=top align=right> {include file="buttons/update.tpl" type="input" href="javascript: document.cartform.submit()" js_to_href="Y"}</td>{if $products[product].product_options ne '' and not $products[product].preorder_variants} {*BCSE Modified*} {if $config.UA.platform eq 'MacPPC' && $config.UA.browser eq 'MSIE'} <td><img src="{$ImagesDir}/spacer.gif" width=5></td><td valign=top class="ButtonsRow"> {include file="buttons/edit_product_options.tpl" id=$products[product].cartid js_to_href="Y"}</td> {else} <td><img src="{$ImagesDir}/spacer.gif" width=5></td><td valign=top class="ButtonsRow"> {include file="buttons/edit_product_options.tpl" id=$products[product].cartid}</td> {/if} {/if} </tr> </table> {if $gcheckout_display_product_note and $products[product].valid_for_gcheckout eq 'N'} <br /> {$lng.lbl_gcheckout_product_disabled} {/if} </div> </td></tr> <tr><td colspan=3 style="padding-top: 8px; padding-bottom: 3px;"><hr></td></tr> {/if} {/section} </table> {if $active_modules.Gift_Certificates ne ""} {include file="modules/Gift_Certificates/gc_cart.tpl" giftcerts_data=$cart.giftcerts} {/if} {if not $login} {if $main eq "fast_lane_checkout"} <table cellspacing="1" cellpadding="2" border=0 width=100%> <tr><td class="ExpandSectionMark" id="close1" style="" onclick="javascript: visibleBox('1');"><img src="skin1/images/plus.gif" alt="Click to open" /></td> <td class="ExpandSectionMark" id="open1" style="display: none; " onclick="javascript: visibleBox('1');" valign=top><img src="skin1/images/minus.gif" alt="Click to close" /></td> <td nowrap="nowrap" valign=top align=left><a href="javascript: void(0);" onclick="javascript: visibleBox('1');"><b>Estimate Shipping Rates</b></a></td><td valign=top align=right>{include file="modules/Fast_Lane_Checkout/cart_subtotal.tpl"} </td></tr> </table> {if $estimate ne "NO"} <table cellpadding="0" cellspacing="0" width="100%" style="display: none;" id="box1"> <tr><td> {include file="customer/main/shipping_estimator.tpl"} {*BCSE Added*} </td></tr> </table> {else} <hr> <table cellpadding="0" cellspacing="0" width="100%" id="box1"> <tr><td> {include file="customer/main/shipping_estimator.tpl"} {*BCSE Added*} </td></tr> </table> {/if} {/if} {else} <table border=0 cellpadding=0 cellspacing=0 width=100%> <tr><td valign=top align=right>{include file="modules/Fast_Lane_Checkout/cart_subtotal.tpl"}</td></tr> </table> {/if} <hr style="padding-bottom: 0px;"> {if $js_enabled} <table cellpadding="0" cellspacing="0" width="100%" border=0> <tr> {if $active_modules.Special_Offers} {include file="modules/Special_Offers/customer/cart_checkout_buttons.tpl"} {/if} <td align="right"> {if $gcheckout_enabled} {if $active_modules.Special_Offers eq ""} {include file="modules/Google_Checkout/gcheckout_button.tpl"} {/if} {else} <div align="right"> <table cellpadding="0" cellspacing="0" width=100% border=0> <tr><td colspan=3 style="padding-bottom: 20px;" align=right> {if $cart.coupon_discount eq 0 and $products ne ""} {if $active_modules.Discount_Coupons ne ""} {include file="modules/Discount_Coupons/add_coupon.tpl} {/if} {/if} </td></tr> <tr> <td align=right> {include file="buttons/button.tpl" button_title=$lng.lbl_continue_shopping style="button" href="home.php"} </td> <td><img src="{$ImagesDir}/spacer.gif" width=20></td> <td align=left> {include file="buttons/button.tpl" button_title=$lng.lbl_checkout style="button" href="https://www.nerdseven.com/cart.php?mode=checkout"} </td> </tr> </table> </div> {/if} </td> </tr> </table> {if $gcheckout_enabled and $active_modules.Special_Offers} <br /><br /> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right">{include file="modules/Google_Checkout/gcheckout_button.tpl"}</td> </tr> </table> {/if} {else} <input type="hidden" name="mode" value="checkout" /> {include file="submit_wo_js.tpl" value=$lng.lbl_checkout} {/if} </form> {if $paypal_express_active} <div align="right"> {include file="payments/ps_paypal_pro_express_checkout.tpl" paypal_express_link="button"} </div> {/if} {else} {$lng.txt_your_shopping_cart_is_empty}<br><br> <a href="http://www.tqualizer.biz">Click here to begin shopping!</a> {/if} {/capture} {include file="dialog.tpl" content=$smarty.capture.dialog extra='width="100%"'} <center> <br><br> <center> <table border=0 cellpadding=0 cellspacing=0> <tr><td valign=middle align=right><img src="{$ImagesDir}/visa_mc_pp.png"></td><td align=left><!-- (c) 2005, 2008. Authorize.Net is a registered trademark of CyberSource Corporation --><script type="text/javascript" language="javascript">var ANS_customer_id="fe68790c-14ad-4117-bf10-17895dbd2fbf";</script> <script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js"></script></td></tr> </table></center>
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #4  
Old 02-21-2009, 06:42 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Update Qty Button Broken

The big difference I can see is where the quantity is changed.

You have...
<font class="ProductPriceConverting">{include file="currency.tpl" value=$price}{if $products[product].ship_price}&nbsp;({include file="currency.tpl" value=$products[product].ship_price}){/if} x {if $active_modules.Egoods and $products[product].distribution}1<input type="hidden"{else}<input type="text" size="3"{/if} name="productindexes[{$products[product].cartid}]" value="{$products[product].amount}" /> = </font><font class="ProductPrice">{math equation="price*amount" price=$price amount=$products[product].amount format="%.2f" assign=unformatted}{include file="currency.tpl" value=$unformatted}{if $products[product].ship_total}&nbsp;({include file="currency.tpl" value=$products[product].ship_total}){/if}</font><font class="MarketPrice"> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$unformatted}{if $products[product].ship_total}&nbsp;{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].ship_total}{/if}</font>

when the stock cart.tpl has

<font class="ProductPriceConverting">{include file="currency.tpl" value=$price} x {if $active_modules.Egoods and $products[product].distribution}1<input type="hidden"{else}<input type="text" size="3"{/if} name="productindexes[{$products[product].cartid}]" value="{$products[product].amount}" /> = </font><font class="ProductPrice">{math equation="price*amount" price=$price amount=$products[product].amount format="%.2f" assign=unformatted}{include file="currency.tpl" value=$unformatted}</font><font class="MarketPrice"> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$unformatted}</font>

I have no idea what all of the added code does, but I think that is where the problem lies.

PS - you also have a link to (http://www.tqualizer.biz) in your cart if it is empty. Do you really want this?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 02-21-2009, 08:09 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Update Qty Button Broken

Thanks for checking that,

I tested the stock template code by replacing my customized block but the update is still not functioning.

Must be happening somewhere else?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #6  
Old 02-21-2009, 08:12 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Update Qty Button Broken

Use a diff program to analyze the two files.
__________________
xcart 5.1.2
Reply With Quote
  #7  
Old 02-21-2009, 08:13 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Update Qty Button Broken

I use this

http://kdiff3.sourceforge.net/
__________________
xcart 5.1.2
Reply With Quote
  #8  
Old 02-21-2009, 08:15 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Update Qty Button Broken

the other thing I did was take my cart.tpl from tqualizer.biz (thanks JS for pointing that link out btw) which is a similar design and replaced the cart.tpl on nerdseven.com. On tqualizer.biz qty update works perfectly, on nerdseven the same exact code doesn't.

I'm wondering if I might be having a module conflict...we recently installed BCSE's rewards module onto NerdSeven, which t-qualizer *isn't* running.
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:08 AM.

   

 
X-Cart forums © 2001-2020