Buy same product but chosing diferente attributes.

22.09.2014 01:54
#1
Lokkytron
Joomshopping forum user no avatar
Name: Francisco
01.12.2013
Сообщения: 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

Последнее изменение: 22.09.2014 12:26
 
22.09.2014 08:13
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25853
Quote
Aw: Buy same product but chosing diferente attributes.

url for test?

 
22.09.2014 11:48
#3
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25853
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
Сообщения: 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
Сообщения: 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. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.