A essential mod in use that I develop is "Restrict Shop by Brand" is a basic comparison between Manufacturer IDs on cart and checkout.
URL: https://www.opencart.com/index.php?rout ... n_id=33289
A few lines that I would be glad if someone can adapt as I saw that the code syntax changed as wall as some routes.
Thanks
Pedro Martin - websitesbuilder.com.au
Checkout my free extensions: https://www.opencart.com/index.php?rout ... r=comprido
For that you use another module?
Because you vqmod extension doesn't show manufacturer id also has some bugs like:
Incorect
Code: Select all
<search position="after"><![CDATA[$_[<td class="model"><?php echo $column_model; ?></td>]]></search>
Code: Select all
<search position="after"><![CDATA[<td class="model"><?php echo $column_model; ?></td>]]></search>
Code: Select all
<file name="catalog/controller/checkout/chekout.php">
Code: Select all
<file name="catalog/controller/checkout/checkout.php">
this
Code: Select all
<search position="after"><![CDATA[if ($product['minimum'] > $product_total) {
$this->redirect($this->url->link('checkout/cart'));
}]]></search>
Code: Select all
<search position="before"><![CDATA[if ($product['image']) {]]></search>
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
Cool Johnathan, yeah thanks for the corrections I have to reupload.
You can see the module in action on tee-shirt.com.au if you add to products from different categories, but not cat_0 wich I allow to combine with the rest.
So, as you know not to just show the manufacturer ID but more important, disable customers to buy from different manufacturers.
I think it is quite simple mod to adapt to OC3 if you understand the syntaxis maybe you could help me. I will go through that today.
Pedro Martin - websitesbuilder.com.au
Checkout my free extensions: https://www.opencart.com/index.php?rout ... r=comprido
LE. You forgot to change this on you version
Code: Select all
<search position="after"><![CDATA[$_[<td class="model"><?php echo $product['model']; ?></td>]]></search>
Code: Select all
<search position="after"><![CDATA[<td class="model"><?php echo $product['model']; ?></td>]]></search>
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Attached code I use for the exception. Feel free to add to your free converted extensions!
Attachments
Restricted Shop by Manufacturer except Manufacturer ID "0"
Pedro Martin - websitesbuilder.com.au
Checkout my free extensions: https://www.opencart.com/index.php?rout ... r=comprido
Would it be easy to add a feature to show an alert on top of each product or once they add again another - just to remind the user once they have already a product from a different manufacturer on their cart? Thanks in advance.
PD. So I guess controller/checkout/cart.php and controller/common/cart.php in function index() - IF the visited/added product manufacturer != manufacturer/s from product/s already on cart THEN SHOW the ALERT.
Attachments
Alert if product on cart from different manufacturer - Screenshot_4.png (307.37 KiB) Viewed 933 times
Pedro Martin - websitesbuilder.com.au
Checkout my free extensions: https://www.opencart.com/index.php?rout ... r=comprido
Pedro Martin - websitesbuilder.com.au
Checkout my free extensions: https://www.opencart.com/index.php?rout ... r=comprido
Users browsing this forum: trixiemay and 199 guests