How to install xshippingpro in OC 2.x?

Although I am giving screenshot of xshippingpro but these steps applicable for any module. So any module can be installed by following these steps.

First, unzip downloaded zip file.

You will get another zip file named get xshippingpro.ocmod.zip

 

Now, please Go to Admin -> Extensions -> Extension Installer.

Then select “xshippingpro.ocmod.zip” and click on continue.

Now please navigate to admin -> Extensions -> Shipping. Now click on Install button located beside X-shipping pro row.

Finally, go to Admin -> Extensions -> Modifications and now click on “Refresh” button

Congrats! You are done. Now it is ready for adding shipping method. New shipping method can be added from admin -> Extensions -> Shipping

How to show xform data in a custom template?

For showing form data/records in the information page, you will have to place shortcode [xformdata id=formID limit=20][/xformdata]. Surely you will have to place your form ID in place of formID

By default data will be shown as tabular format but you can show data in your customized template. In that case you will have to place your template inside shortcode. For example:

[xformdata id=formID limit=20]YOUR_TEMPLATE[/xformdata]

You can make your template ready by placing xform placeholders for getting form data.

Lets make template using above placeholders shown in the screenshots.

[xformdata id=formID limit=20]<div>{c2.value}</div><div>{c17.value}</div><div>{c4.value}</div>[/xformdata]

Free Shipping for a certain category and weight based shipping

I want to set up free shipping for all shoes delivered within the US. If an order contains shoes and something else, the entire order should ship free.
Otherwise, it should use shipping by weight or free shipping in us if the order is over $75.

Hi,

Thanks for contacting and purchasing xshippingpro.

After summarizing your requirements, I understood followings:

1. Shipping is free within US if order contains shoes and any other items.
2. If order total is less than $75, Shipping cost will be weight based
3. If order is total is greater than $75, Shipping is free

You did not tell about shipping outside of US. Anyway, for achieving above scenarios you need three shipping methods to be created.

Also since both item1 and item3 might be appeared at a time and both are free shipping methods, so it would not be good thing if two free shipping methods appears together. For fixing this issue, we will use group mode option. So please navigate to Xshippingpro -> Global Setting -> Group Option. Then Select Group1 is Highest.

Now lets create shipping methods

Shipping methods with shoes category:
1. Create a new method and provide a name
2. In General Setting tab, Select Group is Group1
3. In Product/Category tab, Select Category rule is “Any of the selected categories with others”. Then choose your Shoes categories.
4. In Price setting tab, Select Rate type is Flat. Now enter Price 0

Weight Based Shipping
1. Create another method and provide a name
2. In General Setting tab, Select Group is Group1
3. In Price setting tab, Select Rate type is Weight. Now enter Weight ranges (Unit Ranges) as your required. For example:

Start      End        Cost           Per Unit Block         Allow Partial
0               10           5                        0                                NO
10             20          10                      0                                NO

4. In Other tab, Enter Order Total Range 0 to 74

Total Based Shipping
1. Create another method and provide a name
2. In General Setting tab, Select Group is Group1
3. In Price setting tab, Select Rate type is Total. Now enter following unit ranges

Start           End           Cost Per Unit          Block Allow        Partial
75              9999999            0                               0                         NO
Thanks
Samir

Per Item based shipping cost

Let’s say I have product a called blue car.  On this one product and only this product.  I want the per item shipping to be $10.  So if let’s say you want to buy 5 blue cars, the shipping would be 5 x 10 = $50

Then all the other products.  I want it to be $2 per item. How do I do this?
Thanks for your question. We need to create two shipping methods, one for the product blue car and another for all other products. Since customer might purchase product from blue car and other products together, we have to sum up the costs of the both shipping methods in such case. For accomplishing that, we can use group mode option.
So navigate to Xshippingpro -> Global Setting -> Group Option. Now select Group1 is Sum

 

Okay, Lets create first shipping method:

 

Shipping Method for the product Blue Car
  1. Create a new method and give it a name
  2.  In General Setting tab, Select Group is Group1
  3. In Product/Category tab, Select Product Rule is Any of the selected Product with others. Then choose the product Blue Car.
  4. In Price setting tab, Select Rate type is Quantity – Method Specific . Then add following unit ranges

Start                End            Cost              Per Unit Block            Allow Partial
0                        999            10                          1                                NO

Shipping Method for all other Products

  1. Create another method and give it a name
  2.  In General Setting tab, Select Group is Group1
  3. In Product/Category tab, Select Product Rule is Except the products with others. Then choose the product Blue Car.
  4. In Price setting tab, Select Rate type is Quantity – Method Specific . Then add following unit ranges

Start                End            Cost              Per Unit Block            Allow Partial
0                        999             2                          1                                NO

 

Thanks

Few products are free and few products are paid

I have two products Prod A and Prod B.

Prod A is always FREE and shipping should not be calculated for it.

When I put both products in the cart, the shipping should only be applied to Prod B at different values. For example: Prod B cost €10 the shipping = €5. Prod B x 2 = €20 the shipping = €7. If Prod B x 2 has Prod A in the cart the shipping should still be €7.

Thanks for your question. You need two shipping methods. One for Free products (i.e Product A) and another for Paid products (i.e Product B). Also we don’t want to show Free shipping if Paid product in the cart. For that, we will have to use Group mode option. So lets first set Group  mode option

 In Global setting -> Group Option tab of xshippingpro,  Please select Group1 is Highest.
Now lets create Free method
Free Method
 
1. Create new method and provide a name
2. In general setting, select Group is Group1
3. In Products/Category tab, select product rule “Any of the selected products with others”. Choose your product A
4. In Price setting tab, select Rate type is Flat. Enter Price 0
Paid Method
 
1. Create another method and provide a name
2. In general setting, select Group is Group1
3. In Products/Category tab, select product rule “Any of the selected products with others”. Choose your product B
4. In Price setting tab, select Rate type is Quantity- Method Specific. Enter Following unit ranges
Start      End      Cost      Per Unit Block       Allow Partial
0            1            5                   0                         NO
1             2          7                   0                           NO
and so on…

Always display sub-categories in left side in opencart

By default sub-categories won’t be displayed until parent category become active. If you want to  keep sub-categories visible always, this hacks for you.

You need to modify two files.

Controller

catalog/controller/extension/module/category.php   [OC 2.3.x]
catalog/controller/module/category.php   [OC < 2.3 ]

Find following codes

Now replace above codes by following

 

View

catalog/controller/extension/module/category.tpl   [OC 2.3.x]
catalog/controller/module/category.tpl   [OC < 2.3 ]

You can replace all codes of template file by following

Good luck!

Moving Currency Selection from header to footer in opencart

If you want to move Currency selection dropdown from header to footer, you will need to following two files:

  1. catalog/controller/common/footer.php  Please add following code

Now  $currency is available inside catalog/view/theme/YOUR_THEME/template/common/footer.tpl so you can place it whatever you want in footer.tpl file i.e you will have place following code

 

 

 

Charge a flat rate per unit after a certain range

Question:
I have 5 weight ranges with a fixed rates and rest are just added according to the remaining balance of weight.
Example:-
0 kg – 1kg  = $10
1 kg – 2kg  = $25
2 kg – 3kg  = $34
3 kg – 4kg  = $41
4 kg – 5kg  = $50
There after every 1kg extra need to add $10 
 
—————-
Total ordered weight:  8.82kg
calculation:  
– first 5kg = $50
– add. 3.82kg (4kg x 10) = $40 
—————————————–
Total Cost = $90
—————————————————-
can you please help me with configuration and give me example of how to set the above in x-shipping pro plugin?
Thank you very much
warm regards
Answer:
Thanks for your question.  Please do following for achieving your scenario:
  1.  Create a new method if you did not yet.
  2.  In Price Setting tab, please select Rate Type is Weight
  3.  Now Enter Following Unit Range

Start       End         Cost            Per Unit Block      Allow Partial
0              1              10                      0                           NO
1              2               25                     0                            NO
2               3              34                      0                           NO
3               4               41                    0                            NO
4               5               50                   0                            NO

      4. Now enter Additional Unit Price  is 10
Thanks

Weight based shipping with free shipping option using xshipppingpro

Hi,
can you please help me with configuration of plugin?

I have weight type of shipping in 7 weight ranges and i need to implement also the free shipping when the total price of cart or order is more than 50 € and under 10kg?! Is something like this possible?

Thank you very much

Hi

Thanks for contacting.
For achieving your scenario, you need two shipping methods. One for weight based and another for Free shipping. Since we don’t want to show Weight based shipping if free shipping is available during checkout, so we need to use group mode for that.
So please go to Global setting -> Group Option in xshippingpro. Now Select Group1 is Lowest
Now lets make first method for weight based.
Weight Based Shipping
——————————
1. Create a new method and give it a name
2. Under General Tab, Select Group is Group1
3. Under Price Setting tab, Select Rate type is weight
4. Now Enter your unit ranges. For example:
Start       End          Cost          Per Unit Block      Allow Partial
0              10             $$                  0                          NO
10            20             $$                 0                           NO
and so on. Here $$ means shipping price for the respective ranges
Free Shipping
———————
1. Create another method and give it a name
2. Under General Tab, Select Group is Group1
3. Under Price Setting tab, Select Rate type is Total
4. Now Enter following unit ranges.
Start       End          Cost          Per Unit Block      Allow Partial
50        999999           0                  0                          NO
5. Under Other tab, Enter Weight range  0 to 10

Shipping cost based on per Unit weight

Hi, Cloud you please help me to resolve a confusion?

My store use 0.1 kg as the unit weight, the unit price for each 0.1 kg is about $0.7.

For instance:
7.33 kg Shipping cost = 73.3*$0.7 = $51.31.

How can I combine this options?

Thanks.

Thanks for your question.  For achieving your goal, please do followings.

  1. Under Price setting tab, select Rate type is Weight
  2.  Now Enter Unit Ranges as follows

Start    End       Cost        Per Unit Block       Allow Partial
0            1000       0.7             0.1                                 NO