Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hello,
The strangest thing happens when I click "Add to Cart" button on index.php of the shopping cart. A new window of that same page (index.php) pops up.

I downloaded the complete zip file from the guide. first, I modified the page name to crt-index.php and accordingly changed the config file to match ( $pp['tpl_products'] = 'crt-index.php';)

I've tried this in Chrome, IE and FF and all 3 do the same thing, a new window opens up to the exact same crt-index.php page. So basically a smaller window opens up on top of the same window.

I searched the forum and there are no other strings discussing that. I'm using the package that was downloaded from the guide with the only modification being what I mentioned above (the rename).
Using my browser console I notice that the FORM action is action="http://mysite.com/cart.php?kcart_action=1" so I know that isn't the issue. I've searched the guide and can't find any reference to that.

Does anyone know why, when I click "Add to Cart" a new window to the same window opens up?
Hi,

Is the site online? Is so please PM me its URL.
Thanks for the creds.

I had a look and found the problem in the following JS code in your index file
<script type="text/javascript">
// Set global values for 'js/cart-modal.js' that follows
var cart_link = "";
var checkout_link = "http://yoursite.com/cart.php?kcart_action=5";
</script>

The empty link should normally point to the template used to show the cart via AJAX. This is specified in addons/cart/config.php -
Code: Select all
$pp['tpl_ajax_cart'] = 'cart-modal.php';

So the problem could be either -
1. You have not set the right template there or (more likely)
2. You have failed to register the 'cart-modal.php' template (by visiting it as super-admin). Please make sure this template appears in admin-panel's sidebar.

Hope this helps.
SOLVED: THANK YOU. It was that I hadn't registered cart-modal.php as superadmin.
Register all the pages for each element to work correctly.

This system continues to amaze me.
4 posts Page 1 of 1