Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Huge error with Price Break Contribution


Recommended Posts

(Yes, I backed up my database first)...


Okay, I just spent the past hour modifying my cart for the price break contribution. I finished all the changes and when I log on now, I get this error:


1054 - Unknown column 'p.products_price1' in 'field list'


select p.products_image, pd.products_name, p.products_id, p.manufacturers_id, p.products_price, p.products_price1, p.products_price2, p.products_price3, p.products_price4, p.products_price5, p.products_price6, p.products_price7, p.products_price8, p.products_price1_qty, p.products_price2_qty, p.products_price3_qty, p.products_price4_qty, p.products_price5_qty, p.products_price6_qty, p.products_price7_qty, p.products_price8_qty, p.products_qty_blocks, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '24' order by pd.products_name limit 0, 20




Since it will take me four more hours to figure out what I did, anyone know off the top of their heads? Here's the site it's on: http://familymemoriesandmore.com/cart/index.php?cPath=24


NOW - there is one thing I'm not sure how to do, maybe it's causing the error... the first instructions say to "add the following to the database" and there's a huge list of "alter table products add column products_price1" etc. etc... where do I upload this at?


Thanks so much for your help!

Link to comment
Share on other sites

Okay, I fixed the big error, but now I have another... Got the price breaks in, but when I add to cart, it defaults to a quantity of four (see here: http://familymemoriesandmore.com/cart/prod...;products_id=28 )... if I change the quantity, I get this error when updating:


Fatal error: Unsupported operand types in /home/garysgal/public_html/cart/includes/application_top.php on line 355


This is my line 355:

$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id'])) + $HTTP_POST_VARS['cart_quantity'], $HTTP_POST_VARS['id']);

Edited by garysgal
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...