Hello
I installed this module
https://www.opencart.com/index.php?rout ... load_id=55
Versiune opencart 3.0.2.0
very well but I do not know how to give two continue shopping and checkout buttons
Maybe someone can help me
Thanks
See this post: viewtopic.php?f=202&t=202975&p=717588#p717582
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Hello
We have modified the following code as in the example
I installed modules this one
https://www.opencart.com/index.php?rout ... load_id=55
Nothing has changed
the module works without the two buttons
Maybe something needs to be modified
Thank you
No OC version posted. However, it can be done. Followed is for v3.0.2.0 release:
In catalog/controller/checkout/cart.php file,
find:
Code: Select all
$product_id = (int)$this->request->post['product_id'];
add below:
Code: Select all
$this->session->data['product_id'] = (int)$product_id;
Then, find:
Code: Select all
$data['continue'] = $this->url->link('common/home');
replace with:
Code: Select all
if (!empty($this->session->data['product_id'])) {
$data['continue'] = $this->url->link('product/product', 'product_id=' . (int)$this->session->data['product_id']);
} else {
$data['continue'] = $this->url->link('common/home');
}
Then, in catalog/controller/product/product.php file, find:
Code: Select all
$this->load->model('catalog/manufacturer');
add below:
Code: Select all
if (!empty($this->session->data['product_id'])) {
unset ($this->session->data['product_id']);
}
This should resolved the issue.
The most generated errors being found on Opencart forum originates from contributed programming.
Regards,
Straightlight
We have modified the following code as in the example
I installed modules this one
https://www.opencart.com/index.php?rout ... load_id=55
Nothing has changed
the module works without the two buttons
Maybe something needs to be modified
Thank you
No OC version posted. However, it can be done. Followed is for v3.0.2.0 release:
In catalog/controller/checkout/cart.php file,
find:
Code: Select all
$product_id = (int)$this->request->post['product_id'];
add below:
Code: Select all
$this->session->data['product_id'] = (int)$product_id;
Then, find:
Code: Select all
$data['continue'] = $this->url->link('common/home');
replace with:
Code: Select all
if (!empty($this->session->data['product_id'])) {
$data['continue'] = $this->url->link('product/product', 'product_id=' . (int)$this->session->data['product_id']);
} else {
$data['continue'] = $this->url->link('common/home');
}
Then, in catalog/controller/product/product.php file, find:
Code: Select all
$this->load->model('catalog/manufacturer');
add below:
Code: Select all
if (!empty($this->session->data['product_id'])) {
unset ($this->session->data['product_id']);
}
This should resolved the issue.
The most generated errors being found on Opencart forum originates from contributed programming.
Regards,
Straightlight
Since you're using an extension, contact the extension developer to integrate what you need. You can also clear your OC cache from the OC admin by following this post noticing the changes after implementing the steps from the above post: viewtopic.php?f=176&p=718325#p718325
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 349 guests