Buy same product but chosing diferente attributes.

22.09.2014 01:54
#1
Lokkytron
Joomshopping forum user no avatar
Name: Francisco
01.12.2013
Posts: 3
Quote
[SOLVED] Buy same product but chosing diferente attributes.

Hello I am trying to get the shop working but i am having an weird issue... (weird to me)

I have the shop with stock dosable, only one product, a dress, with attribute color (no dependant) and options red and blue.

When i want to buy 3 dresses in 2 diferent color (1 red and 2 blue) the checkout only show to me one product (the red, first choosed) but with the sum of quantities ( 3 )... I meant i add one dress red to cart with no issues, but when i try to add other sae product but with diferrente attibute chossing the quantity adds to the previously added same article and ignore the second attribute chossing.

Do i need an especific addon? Could it be that i am a truly noob?

Any ideas?

So sorry about my english.


Joomla: 3.3.3
JoomShopping: 4.4.0
PHP: 5.3.29
MySQL: 5.1.66
Website Url: localhost yet

Letzte Ă„nderung: 22.09.2014 12:26
 
22.09.2014 08:13
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16514
Quote
Aw: Buy same product but chosing diferente attributes.

url for test?

 
22.09.2014 11:48
#3
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16514
Quote
Aw: Buy same product but chosing diferente attributes.

Problem in your javascript

jQuery(function() {
jQuery("#custom_tallas span.input_type_radio").click(function(e){
e.preventDefault();
e.stopPropagation();
jQuery("#custom_tallas span.input_type_radio").each(function(key,value){
jQuery(value).css("background-color", "#eee");
});
jQuery(this).css("background-color", "#ccc");
});
jQuery("#custom_colores span.input_type_radio").click(function(e){
e.preventDefault();
e.stopPropagation();
jQuery("#custom_colores span.input_type_radio").each(function(key,value){
jQuery(value).css("outline", "0px");
});
jQuery(this).css("outline", "2px solid #ed7063");
});
});

radio button not works

cahneg CSS

.custom_hide_radio {
display: none;
}

delete display: none;

See error -
radio button not works

 
22.09.2014 11:57
#4
Lokkytron
Joomshopping forum user no avatar
Name: Francisco
01.12.2013
Posts: 3
Quote
Aw: Buy same product but chosing diferente attributes.

AWESOME...thank for quick reply and finding the error.

Going to rewrite.

 
22.09.2014 12:31
#5
Lokkytron
Joomshopping forum user no avatar
Name: Francisco
01.12.2013
Posts: 3
Quote
Aw: Buy same product but chosing diferente attributes.

It was only my fault... trying to avoid double execution for event click in my jquery script I used the preventDefault() and forget to manually check and unckheck the correct radio buttons.

Thnak you again for the quick response and for give me the solution.

 
Copyrights MAXXmarketing GmbH. All Rights Reserved