I am a complete novice with php scrip but I am wiling to learn.
I am in need of some help, please.
Can anyone sort this code out for me so that it works correctly and
adjusts the price for the quantity selected on the front end.
_______________ _______________ _______________ _______________ ___
if(article_get_ field('type')== 'Croclight Candle'){
article_set_fie ld('item_number ', 'CRC');
article_set_fie ld('price', 6.99);
}
elseif(article_ get_field('type ')== 'Spray') {
article_set_fie ld('item_number ', 'CRS');
article_set_fie ld('size', '50ml');
article_set_fie ld('price', 6.99);
}
elseif(article_ get_field('size ')== '15ml') {
article_set_fie ld('item_number ', 'CRS');
article_set_fie ld('type', 'Spray');
article_set_fie ld('price', 2.99);
}
elseif(article_ get_field('type ')== 'Roll-on') {
article_set_fie ld('item_number ', 'CRO');
article_set_fie ld('size', '50ml');
article_set_fie ld('price', 6.99);
}
_______________ _______________ _______________ _______________ ____
Thanks in advance
Mark
I am in need of some help, please.
Can anyone sort this code out for me so that it works correctly and
adjusts the price for the quantity selected on the front end.
_______________ _______________ _______________ _______________ ___
if(article_get_ field('type')== 'Croclight Candle'){
article_set_fie ld('item_number ', 'CRC');
article_set_fie ld('price', 6.99);
}
elseif(article_ get_field('type ')== 'Spray') {
article_set_fie ld('item_number ', 'CRS');
article_set_fie ld('size', '50ml');
article_set_fie ld('price', 6.99);
}
elseif(article_ get_field('size ')== '15ml') {
article_set_fie ld('item_number ', 'CRS');
article_set_fie ld('type', 'Spray');
article_set_fie ld('price', 2.99);
}
elseif(article_ get_field('type ')== 'Roll-on') {
article_set_fie ld('item_number ', 'CRO');
article_set_fie ld('size', '50ml');
article_set_fie ld('price', 6.99);
}
_______________ _______________ _______________ _______________ ____
Thanks in advance
Mark
Comment