Page 1 of 1
addtocart button not working
Posted: Mon Apr 13, 2015 5:25 pm
by chirag
hi,
in my website addtocart button is stop working as well as all symbol(extra font) are not working
i am not change any code therefore its not working
help to solve that
Re: addtocart button not working
Posted: Sat Apr 18, 2015 12:16 am
by Avvici
Could you please send a link to your site so we can debug this? Thanks.
Re: addtocart button not working
Posted: Sun Apr 19, 2015 8:19 pm
by Tadej
Avvici -arvixe- wrote:Could you please send a link to your site so we can debug this? Thanks.
hello, i already submited for a similar problem ("Add to cart" button not working, but i think my thread wasn't accepted yet), so maybe you can help me and him at the same time.
Here's my store:
http://www.gadgetfreaks.si/
The problem is, when you click "Add to cart" button, the "Cart" will say "Loading", but won't add the product to the cart, instead it will open the product details, other 2 buttons works fine (Compare and add to wishlist).
I already tried to change store.php file and it didn't help.
The error i'm getting is:
Code: Select all
PHP Notice: Undefined variable: site_key in /home/gadgetfr/public_html/catalog/view/theme/journal2/template/product/product.tpl on line 235
Opening the file on that line says:
+ a little more code around that:
Code: Select all
<?php if (version_compare(VERSION, '2.0.2', '<')): ?>
<div class="form-group required">
<div class="col-sm-12">
<label class="control-label" for="input-captcha"><?php echo $entry_captcha; ?></label>
<input type="text" name="captcha" value="" id="input-captcha" class="form-control" />
</div>
</div>
<div class="form-group">
<div class="col-sm-12"> <img src="index.php?route=tool/captcha" alt="" id="captcha" /> </div>
</div>
<?php else: ?>
<?php if ($site_key) { ?>
<div class="form-group">
<div class="col-sm-12">
<div class="g-recaptcha" data-sitekey="<?php echo $site_key; ?>"></div>
</div>
</div>
<?php } ?>
<?php endif; ?>
<div class="buttons">
<div class="pull-right">
<button type="button" id="button-review" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-primary button"><?php echo $button_continue; ?></button>
</div>
</div>
<?php } else { ?>
<?php echo $text_login; ?>
<?php } ?>
</form>
</div>
<?php } ?>
<?php $index = 0; foreach ($this->journal2->settings->get('additional_product_tabs', array()) as $tab): $index++; ?>
<div id="additional-product-tab-<?php echo $index; ?>" class="tab-pane tab-content journal-custom-tab <?php if ($is_active) { echo 'active'; $is_active = false; } ;?>"><?php echo $tab['content']; ?></div>
<?php endforeach; ?>
</div>
</div>
</div>