TomatoCart

126540 Downloads
254 users online
TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?

[*Pending - Bug]When variants stock in product info (front website) are 0, error in script
(1 viewing) (1) Guest
Go to bottomPage: 12345678...11
TOPIC: [*Pending - Bug]When variants stock in product info (front website) are 0, error in script
#19580
Re:[*Pending - Bug]When variants stock in product info (front website) are 0, error in script 10 Months, 3 Weeks ago Karma: 20
I havent check the file, but you can try this:

If there is

Code:

$oscLanguage->get('blabla')

try to replace it by

Code:

'<font color=red>' . $oscLanguage->get('blabla') . '</font>'
Gusis
Platinum Boarder
Posts: 475
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/06/26 07:27 By Gusis.
The administrator has disabled public write access.
 
#19581
Re:[*Pending - Bug]When variants stock in product info (front website) are 0, error in script 10 Months, 3 Weeks ago Karma: 16
acctualy i just noticed a bigger problem...
when the product quantity is "0" all the categories menu is getting wrong...

look at the link :
www.ahoresh.co.il/products.php?27
user/passwor: look

change the 250W/400W to 600W/1000W and youll see the problem...
the 250W/400W have a product quantity of "1" (bigger the "0") so everything is good, but when youll switch to the 600W/1000W you'll get some wrong alignments in the page....

anyone ?
analyst909
Platinum Boarder
Posts: 561
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Eilat, Israel.
Dont try to teach a pig how to sing. it will waste your time and annoys the pig.
The administrator has disabled public write access.
 
#19582
Re:[*Pending - Bug]When variants stock in product info (front website) are 0, error in script 10 Months, 3 Weeks ago Karma: 17
try edit variants.js
find this part about line 120
Code:


{
        $('productInfoAvailable').set('text', this.options.lang.txtOutOfStock);

   $('productInfoQty').set('text', product['quantity'] + ' ' + this.options.unitClass); 


change to
Code:


{
        $('productInfoAvailable').set('text', this.options.lang.txtOutOfStock);
if (this.options.displayQty == true) {
          $('productInfoQty').set('text', product['quantity'] + ' ' + this.options.unitClass);
        }

int2k
Moderator
Posts: 558
graphgraph
User Offline Click here to see the profile of this user
Gender: Male p_heri2000 duakilo.net@gmail.com duakilodotnet p_heri2000@hotmail.com Location: Indonesia Birthday: 04/28
The administrator has disabled public write access.
 
#19583
Re:[*Pending - Bug]When variants stock in product info (front website) are 0, error in script 10 Months, 3 Weeks ago Karma: 17
analyst909 wrote:
hey jack,

i have the same problem but in different way.

for me the problem is coming inside the product page that have variant and only when i have quantity of "0". and the problem is with the "availability" and not with the "SKU"

i changed the "not available" to red color with the <font color> option... so now i can see all the the "<font-color:....>" instead of the "not available" text.

any know solution ?

for this
find
Code:


$('productInfoAvailable').set('text', this.options.lang.txtOutOfStock);


change to
Code:


$('productInfoAvailable').set({class:'notavailable',text:this.options.lang.txtOutOfStock})


and
Code:


$('productInfoAvailable').set('text', this.options.lang.txtInStock);


to
Code:


$('productInfoAvailable').set({class:'',   text:this.options.lang.txtInStock});



then add to stylesheet.css
Code:


.notavailable {
  color: red;
}

int2k
Moderator
Posts: 558
graphgraph
User Offline Click here to see the profile of this user
Gender: Male p_heri2000 duakilo.net@gmail.com duakilodotnet p_heri2000@hotmail.com Location: Indonesia Birthday: 04/28
The administrator has disabled public write access.
 
#19586
Re:[*Pending - Bug]When variants stock in product info (front website) are 0, error in script 10 Months, 3 Weeks ago Karma: 50
Hi analyst909,

Thank for your testing. We will test it according to your report. If we can't find out the problem, we will contact you again.

You are actually to assist the TomatoCart Core Team to make this project more stable and professional.

We really appreciate the community users as you.
jack.yin
Jack Yin
Team Member
Posts: 2330
graph
User Offline Click here to see the profile of this user
Gender: Male support@tomatocart.com
---------------------

Jack Yin

Please help us to spread TomatoCart and tell people that you love TomatoCart!

If you are satisfied with TomatoCart, please follow us at @  
Google+
If you find this thread is useful you can share it @  



To keep updating TomatoCart status in future, Like our Facebook, Google+, LinkedIn page or Follow us on Twitter.

.Facebook: www.facebook.com/pages/TomatoCart/241732152589007
.Google+: plus.google.com/109588253708268031594?prsrc=3
.Linkedin: www.linkedin.com/groups?home=&gid=31...8&trk=anet_ug_hm
.Twitter: twitter.com/tomatocart
The administrator has disabled public write access.
 
#19587
Re:[*Pending - Bug]When variants stock in product info (front website) are 0, error in script 10 Months, 3 Weeks ago Karma: 50
Hi int2k,

Thanks for your response. Could we add you into the moderators list at www.tomatocart.com/community/community-coordinators.html?
jack.yin
Jack Yin
Team Member
Posts: 2330
graph
User Offline Click here to see the profile of this user
Gender: Male support@tomatocart.com
---------------------

Jack Yin

Please help us to spread TomatoCart and tell people that you love TomatoCart!




To keep updating TomatoCart status in future, Like our Facebook, Google+, LinkedIn page or Follow us on Twitter.

.Facebook: www.facebook.com/pages/TomatoCart/241732152589007
.Google+: plus.google.com/109588253708268031594?prsrc=3
.Linkedin: www.linkedin.com/groups?home=&gid=31...8&trk=anet_ug_hm
.Twitter: twitter.com/tomatocart
The administrator has disabled public write access.
 
Go to top Page: 12345678...11

Latest Blog Post

TomatoCart v1.1.7 to v1.1.8 Upgrade Guide!

The upgrade guide is a step-by-step tutorial to help users to upgrade TomatoCart v1.1.7 to v1.1.8. If you have not yet updated to v1.1.7, please review its upgrade guide before applying these changes. [...]

By TomatoCart | august 21, 2012

contact_us

info@tomatocart.com
partner@tomatocart.com
Facebook Google+ Linkedin Twitter

Newsletter Subscription