Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Any contribution for adding qty to product attributes?


pingz

Recommended Posts

Posted

Hi,

 

I have been searching around for a contribution which allows us to add qty to the product attributes so that say when a particular size has no more qty then it will automatically be reflected as sold out or cannot be selected anymore.

 

Anyone can recommend or know of such contribution?

 

Thanks!

Posted

Hi!

 

Do you know of anything simpler? As I already have modifications to my files, so very difficult to implement this contribution. Anything w more direct installation?

 

I did still try to use this contribution but had difficulties halfway.

 

Appreciate any feedback.

 

Thanks!

Posted

Hi,

 

To make it easier to implent the file changes:

 

Try searching google for beyondcompare

 

That should do the job for you perfectly

 

Let me know if you need any help using it

 

Cheers

Gareth

Posted

I wish I could help you but without looking at you code I would have no idea why this is happening. It has only happened to me once and that was when I moved the add to cart button outside of the part of the form function that told the cart how many to add while changing the layout on the product_info.php

 

Did you edit that page?

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted
I wish I could help you but without looking at you code I would have no idea why this is happening. It has only happened to me once and that was when I moved the add to cart button outside of the part of the form function that told the cart how many to add while changing the layout on the product_info.php

 

Did you edit that page?

Hi Wendy, Thanks for your reply I have solved that problem I was not updating the cart!.

But you know I get a completely different error now.

When I started to change the page with my own products and when start inserting new products in 2 languages English and Turkish , the Turkish name of the product always comes as "ARRAY" what ever I write as the name of the product but teh English name is correct then when I insert the product I then get the belwo message :

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /var/www/domains/e-market.artest.com.tr/docs/yaser/includes/functions/database.php on line 134

 

Warning: Cannot modify header information - headers already sent by (output started at /var/www/domains/e-market.artest.com.tr/docs/yaser/includes/functions/database.php:134) in /var/www/domains/e-market.artest.com.tr/docs/yaser/includes/functions/general.php on line 22

 

 

can you help me on that please!.

kind regards

Posted
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /var/www/domains/e-market.artest.com.tr/docs/yaser/includes/functions/database.php on line 134

 

Warning: Cannot modify header information - headers already sent by (output started at /var/www/domains/e-market.artest.com.tr/docs/yaser/includes/functions/database.php:134)

 

The problem is properly related to the way PHP parses the posted data when arrays are send. You send arrays when having more than one language.

I have not looked into whether it's PHP parsing the wrong way or oscommerce using enctype in an illegal way.

Anyhow. The problem can be solved by replacing instances of enctype="multipart/form-data" with enctype="application/x-www-form-urlencoded".

search admin/categories.php for lines with:

* tep_draw_form('new_product'

* tep_draw_form($form_action

.. and replace in those two lines.

 

/Klavs

Posted
The problem is properly related to the way PHP parses the posted data when arrays are send. You send arrays when having more than one language.

I have not looked into whether it's PHP parsing the wrong way or oscommerce using enctype in an illegal way.

Anyhow. The problem can be solved by replacing instances of enctype="multipart/form-data" with enctype="application/x-www-form-urlencoded".

search admin/categories.php for lines with:

* tep_draw_form('new_product'

* tep_draw_form($form_action

.. and replace in those two lines.

 

/Klavs

Hey thanks that worked fine!.

I have another small problem ( sorry this is my first attempt) when I am adding a new product the section where one puts the web address of manufacturer / another site name , well whenever I do that and later on click on that link I always get

http://http://e-market.artest.com.tr/redir...FSL+Stations_GB

ho wdo I getrid of two http:// at the beginning.

By the way I dont write http:// at beginninning of the adress whenI ma inserting a new product.

I need to redirect people to brochures directory in my web site rather that web adresses.

Hope you can help me with that too.

thnaks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...