Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Bug Reports / [not a bug] uncertain with "Buy Now" Buttons

[not a bug] uncertain with "Buy Now" Buttons

Locked

Started by graper on 14 Aug 2006, 8:22 PM · Views: 1,692

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
14 Aug 2006, 8:22 PM
#1
graper avatar

graper

New Zenner

Join Date:
Jul 2006
Posts:
50
Plugin Contributions:
0

[not a bug] uncertain with "Buy Now" Buttons

http://markham.kirkhamsystems.dyndns.org/index.php?main_page=index&cPath=2

Goto the link provided and click "add to cart" button, and look what happens to the category name

seems to have something to do with the url having a products_id= in it as it seems you can change the product id in the url and the name of the category changes. wierd one I tell you.

Granville [granville (at) kirkhamsystems.com]
Kirkham Systems, Inc.

14 Aug 2006, 9:01 PM
#2
graper avatar

graper

New Zenner

Join Date:
Jul 2006
Posts:
50
Plugin Contributions:
0

Re: [not a bug] uncertain with "Buy Now" Buttons

graper:

http://markham.kirkhamsystems.dyndns.org/index.php?main_page=index&cPath=2

Goto the link provided and click "add to cart" button, and look what happens to the category name

seems to have something to do with the url having a products_id= in it as it seems you can change the product id in the url and the name of the category changes. wierd one I tell you.

Fixed it for my add to cart buttons on the front page in featured products, still having found out why when you goto a category and click on add to cart why it changes the title

/includes/init_includes/init_category_path.php
lines 18 and 19 gets product_id out of the querystring when it should be trying to get cPath. why cPath would ever need to get a products_id I don't know, but changing it like this fixed it.

} elseif (isset($_GET['cPath']) &&!zen_check_url_get_terms()){
//elseif (isset($_GET['products_id']) && !zen_check_url_get_terms()) { //changed to above
$cPath = zen_get_product_path($_GET['cPath']);
//$cPath = zen_get_product_path($_GET['products_id']); //changed to above

More info
Zen Cart 1.3.0.2
Database Patch Level: 1.3.0.2
v1.3.0.2 [2006-07-24 13:07:18] (Fresh Installation)
Server OS: Windows 2003 web edition
HTTP Server: Microsoft-IIS/6.0
Database: MySQL 5.0.20-nt-max
Database Date: 08/14/2006 15:56:12
PHP Version: 4.4.1 (Zend: 1.3.0)

Granville [granville (at) kirkhamsystems.com]
Kirkham Systems, Inc.

14 Aug 2006, 9:19 PM
#3
graper avatar

graper

New Zenner

Join Date:
Jul 2006
Posts:
50
Plugin Contributions:
0

Re: [not a bug] uncertain with "Buy Now" Buttons

okey, nevermind that change, I think I'm just tired not to mention I threw out my back so I'm thinking strainght. Forget the fix I provided

Granville [granville (at) kirkhamsystems.com]
Kirkham Systems, Inc.

15 Aug 2006, 3:08 PM
#4
graper avatar

graper

New Zenner

Join Date:
Jul 2006
Posts:
50
Plugin Contributions:
0

Re: [not a bug] uncertain with "Buy Now" Buttons

here's one way to solve it, set Admin > Configuration > Display Cart After Adding Product = true

Granville [granville (at) kirkhamsystems.com]
Kirkham Systems, Inc.