Journal Theme for MultiVendor

The long awaited Journal Theme for MultiVendor is finally here.

The theme has undergone customization to make it compatible with MultiVendor for OpenCart 3.x

Kindly note that this Journal Theme is specifically for MultiVendor the normal Journal theme won’t work.

 

Journal Theme for MultiVendor

Journal MultiVendor Theme DEMO  

If you already have the normal Journal Theme for OpenCart you can request for customization by emailing us info@ovicko.com

Customization cost $20

Converting your OpenCart Extensions to OpenCart 3x the easy way

Hi there!

OpenCart 3x version already out and I am sure some guys like me are struggling to get their extensions updated to fit the Twig templating Engine introduced in OpenCart 3.

I will summarize what I have learnt and also give you some tricks I got from the OpenCart page.

Use regular expressions in PHP IDE to mass search and replace.

This will save you hours of going through your files one by one.

-Be careful with it,make sure you understand the regex before you do anything.

Examples given by OpenCart

The format used here is:

-Example

-Regex

-Replace

Eg

Example: <?php echo $var; ?>

Regex: <\?php echo [$](\w*\b)[;] \?\>

Replace: {{ $1 }}
<?php echo $error_name[$language['language_id']]; ?>

<\?php\s+echo\s+[$](\w+)\[[$](.*)\[\'(.*)\'\]\]\; \?\>

{{ $1[$2.$3] }}
<?php $attribute_row = 0; ?>

<\?php [$](\w*\b) = 0[;] \?\>

{% set $1 = 0 %}
<?php $filter_row++; ?>

<\?php [$](\w*\b)\+\+\; \?\>

{% set $1 = $1 + 1 %}

 

<?php echo $var['key']; ?>

<\?php echo [$](\w*\b)\[\'(\w*\b)\'\]; \?>

{{ $1.$2 }}

 

<?php if ($error_height) { ?>

<\?php if \([$](\w+\b)\) \{ \?\>

{% if $1 %}

 

<?php if (isset($error_name[$language['language_id']])) { ?> 
<\?php\s+if\s+\(isset\([$](\w+\b)\[[$](.*\b)\[\'(.*\b)\'\]\]\)\) \{ \?\> 
{% if $1[$2.$3] %}

 

<?php if (in_array($category['category_id'], $selected)) { ?> 
<\?php if \(in_array\([$](\w+\b)\[\'(.*\b)\'\], [$](\w+\b)\)\) \{ \?\>
{% if $3 in $1.$2 %}
<?php if (in_array($marketplace_code, $marketplaces_processing)) { ?> 
<\?php if \(in_array\([$](\w+\b), [$](\w+\b)\)\) \{ \?\>
 {% if $1 in $2 %}
<?php if ($attribute_group['attribute_group_id'] == $attribute_group_id) { ?> 
<\?php if \([$](\w+\b)\[\'(.*\b)\'\] == [$](.*\b)\) \{ \?\>
 {% if $1.$2 == $3 %}
<?php if ($custom_field['type'] == 'date') { ?> 
<\?php if \([$](\w+\b)\[\'(.*\b)\'\] == \'(.*\b)\'\) \{ \?\> 
{% if $1.$2 == '$3' %}
<?php if ($sort == 'pd.name') { ?>
 <\?php\s+if\s+\([$](\w+\b) == \'(.*\b)\'\)\s+\{\s+\?\> 
{% if $1 == '$2' %}
<?php if ($voucher['order']) { ?>
 <\?php if \([$](\w+\b)\[\'(\w+\b)\'\]\) \{ \?\> 
{% if $1.$2 %}
<?php if (!$shipping) { ?> 
<\?php if \(\![$](\w+\b)\) \{ \?\> 
{% if not $1 %}
<?php echo (isset($account_custom_field[$custom_field['custom_field_id']]) ? $account_custom_field[$custom_field['custom_field_id']] : $custom_field['value']); ?>

<\?php\s+echo\s+\(isset\([$](\w+\b)\[[$](.*\b)\[\'(.*\b)\'\]\]\)\s+\?\s+[$](.*\b)\[[$](.*\b)\[\'(.*\b)\'\]\] : [$](.*\b)\[\'(.*\b)\'\]\);\s+\?\>

{% if $1[$2.$3] %} {{ $4[$5.$6] }} {% else %} {{ $7.$8 }} {% endif %}
<?php echo (isset($account_custom_field[$custom_field['custom_field_id']]) ? $account_custom_field[$custom_field['custom_field_id']] : ''); ?>

<\?php\s+echo\s+\(isset\([$](\w+\b)\[[$](.*\b)\[\'(.*\b)\'\]\]\)\s+\?\s+[$](.*\b)\[[$](.*\b)\[\'(.*\b)\'\]\] : \'\'\);\s+\?\>

{% if $1[$2.$3] %} {{ $4[$5.$6] }} {% endif %}
<?php echo isset($information_description[$language['language_id']]) ? $information_description[$language['language_id']]['description'] : ''; ?>

<\?php\s+echo\s+isset\([$](\w+\b)\[[$](.*\b)\[\'(.*\b)\'\]\]\)\s+\?\s+[$](.*\b)\[[$](.*\b)\[\'(.*\b)\'\]\]\[\'(.*\b)\'\] : \'\';\s+\?\>

{% if $1[$2.$3] %} {{ $4[$5.$6].$7 }} {% endif %}

 

<?php } elseif ($percentage) { ?>

<\?php \} elseif \([$](\w+\b)\) \{ \?\>

{% elseif $1 %}
<?php } elseif ($amazon_login_button_size == 'large') { ?>

<\?php \} elseif \([$](\w+\b) == \'(.*\b)\'\) \{ \?\>

{% elseif $1 == '$2' %}
<?php } elseif ($percentage < 0) { ?>

<\?php \} elseif \([$](\w+\b) \> 0\) \{ \?\>

{% elseif $1 in < 0 %}
<?php foreach ($var1 as $var2) ?>

<\?php foreach \([$](.*\b) as [$](.*\b)\) \{ \?\>

{% for $2 in $1 %}

<?php foreach ($custom_field['custom_field_value'] as $custom_field_value) { ?>

<\?php foreach \([$](.*\b)\[\'(.*\b)\'\] as [$](\w+)\) \{ \?\>

{% for $3 in $1.$2 %}
<?php foreach ($setting['returns']['paidby'] as $v) { ?>

<\?php foreach \([$](.*\b)\[\'(.*\b)\'\]\[\'(.*\b)\'\] as [$](\w+)\) \{ \?\>

{% for $4 in $1.$2.$3 %}
<?php foreach ($marketplaces as $id => $name) { ?>

<\?php foreach \([$](\w+)\s+as\s+[$](\w+)\s+=\>\s+[$](\w+)\)\s+\{ \?\>

{% for $2, $3 in $1 %}
<?php foreach ($capture['shipping_info'] as $key => $shipping_info) { ?>

<\?php foreach \([$](.*)\[\'(.*)\'\]\s+as\s+[$](.*)\s+=\>\s+[$](\w+)\)\s+\{ \?\>

{% for $3, $4 in $1.$2 %}

Close the ifs and for statements manually with the below syntax.

{% endif %}

{% endfor %}
<?php if ($rating == 2) { ?>//change 2 to any number 
<\?php\s+if\s+\([$](\w+\b) == \d\)\s+\{\s+\?\>
{% if $1 == $2 %}

 

OpenCart 3X Advanced MultiSeller

Features of Multiseller

With MultiSeller you can turn your OpenCart store into a marketplace.
Customers can apply to become sellers on your store(s).

1. Register / Login seller account from frontend .
2. Start uploading category , products, options from seller panel
3. Different images folder for each seller.
4. Seller can change status of order.
6. Seller profile page where customer can see products by vendor.
7. Seller payment options bank transfer,paypal and check.
8. Physical and downloadable product option for seller
9. Seller membership application needs approval from the main admin.
10. After creating products,categories it will go to admin for approval.
11. Admin also can login into seller account from backend using login seller link.
12. Admin can add/assign product to seller from backend.
13. Check seller’s transaction, products against that transactions and the customers
14. Seller Membership Plans
15. Customers can review sellers.
16. Customers can update their profile,show their social media accounts.
17. Subscription system which helps you give different sellers different subscriptions.
18. Free installation if needed.
19. Different seller dashboard.
20. Custom settings in the back end for further customization.20. Custom settings in the back end for further customization.

21.Import products in Bulk

22.Admin approve Sellers.

23.Bootstrap user interface for sellers

24.OpenCart 3x ready

Compatible with major themes.

Demo

Admin:

username: multivendor password:demo

Seller

email:multivendor@demo.com password:demo

Customer

email: multivendor@demo.com password:demo

Download the MultiVendor for FREE

Support Email : info@ovicko.com

Screen shots

OpenCart library part 1

In this series you will learn OpenCart in built library that will be handy when  when writing your own OpenCart modules and extensions.

After working on OpenCart for more than three years I think its good to share some of my knowledge with you guys

This part will mainly deal with the library/cart/cart.php for OpenCart 3.x.

The cart.php has the following methods:
$this->cart->update($cart_id, $quantity);
Updates the quantity of a product in the cart with ID = $cart_id

$this->cart->getProducts();
Returns an array of the products in the cart and their details.

$this->cart->add($product_id, $quantity = 1, $option = array(), $recurring_id = 0);
Adds a product of ID= $product_id to the cart,

$this->cart->remove($cart_id);
Deletes the cart with ID = $cart_id.

$this->cart->clear ();
Removes all the products in the current users cart at once

$this->cart->getRecurringProducts ();
Returns an array of products that are recurring.

$this->cart->getWeight ();
Returns the sum of the weights of all products in the cart that have shipping requirement.

$this->cart->getSubtotal ();
Returns the subtotal of all the products in the cart before applying tax

$this->cart->getTaxes();
Returns an array of total taxes applied to products in the cart:

$this->cart->getTotal();
Returns the total cost of all products in the cart after applying tax:
This is normally the final amount the customer has to pay.

$this->cart->countProducts();
Returns the total number of the products in the cart:

$this->cart->hasProducts();
Returns the count of the products in the cart:

$this->cart->hasRecurringProducts();
Returns the count of the recurring products in the cart:

$this->cart->hasStock();
Returns a Boolean value indicating whether product in the cart is available (true) or the product is out of stock (false).

$this->cart->hasShipping();
Returns a Boolean value indicating whether product in the cart requires shipping.

$this->cart->hasDownload();
Returns a Boolean value indicating whether a product is downloadable or not.

Stay tuned for the next article

Huh! you dont have to remember them  all, just know they exists and they could be of help!

If its helpful consider sharing and let me know your ideas 🙂

Get Open Cart Order PDF Invoice generator