Hi.
I have a product with two options.
Can i make a link, that automaticly adds it to the cart, using a specific set of options?
You could change the code in catalog\controller\checkout\cart.php.
if (isset($this->request->post['option'])) {
$option = array_filter($this->request->post['option']);
} else {
$option = array(<---optionid--->>);
}
This will set a default option and add it to your cart
if (isset($this->request->post['option'])) {
$option = array_filter($this->request->post['option']);
} else {
$option = array(<---optionid--->>);
}
This will set a default option and add it to your cart
TOP 5 Opencart Extensions:
1:Opencart Reservations
2:Stock Report, import/export stock levels with Excel
3:3D Carousel
4:Product Price Changer by Category
5:Set price Inclusive Taxes
DEMO SHOP
But what i need is to make a link. - That way, i can post the link on other locations on my site, and add with specific options.daik01 wrote:You could change the code in catalog\controller\checkout\cart.php.
if (isset($this->request->post['option'])) {
$option = array_filter($this->request->post['option']);
} else {
$option = array(<---optionid--->>);
}
This will set a default option and add it to your cart
Who is online
Users browsing this forum: No registered users and 133 guests