help - clone order plugin .fr

Jun 15, 2013 - Virtuemart 2.x now follows Joomla's MVC structure. Therefore you can overload ... /components/com_virtuemart/views/orders/tmpl/list.php. 1.
217KB taille 29 téléchargements 321 vues
VM Clone Order | DayCounts.com, your Virtuemart expert

https://www.daycounts.com/help/vm-clone-order

Home / Help / VM Clone Order

HELP - CLONE ORDER PLUGIN Category: Help By default, Clone order plugin will add a button on the order details page only but cal also parse some custom tags that you can add to articles, modules, or event templates files. To insert a button in an article or a module, add the following code : 1. {cloneorder orderid=XXXX} 2. //Where XXXX is the order number you want to clone. You can also override the default plugin settings: 1. {cloneorder orderid=XXXX|coupon_code=YYYY|text=renew} Separate the different parameters with a pipe (|) Here is a list of parameters you can override: p a r a me t e r T y p e

D e scri p t ion

divclass

text a class name to apply to the container div

divstyle

text css style to apply to the container div

pretext

text text to be shown before the button

text

text the text of the button

posttext

text text to be shown after the button

class_sfx

text class name to apply to the button

btnstyle

text css style to apply to the button

reset_cart

0/1

Should the user cart be reset before adding the items?

coupon_code text Valid coupon code to apply to the cart.

If you want to get a button in the order list you will need to make some changes manually:

Virtuemart 2.x Virtuemart 2.x now follows Joomla's MVC structure. Therefore you can overload template file without changing the core files.

1 sur 2

1. Locate file 1. /components/com_virtuemart/views/orders/tmpl/list.php 2. Copy it to (recreate folder structure if necessary) 1. /templates/YOUR_TEMPLATE/html/com_virtuemart/orders/list.php 3. Add an empty column header to the table 4. Add the button in a new cell for each records: 1. {cloneorder orderid=}

15/06/2013 16:06

VM Clone Order | DayCounts.com, your Virtuemart expert

https://www.daycounts.com/help/vm-clone-order

Virtuemart 1.1.x it needs a small hack in Virtuemart 1.1.x as the code generating this list is not templated.

2 sur 2

1. Locate the file 1. /administrator/components/com_virtuemart/classes/ps_order.php 2. Locate the function 1. function list_order($order_status='A', $secure=0 ) 3. Add the following code to the "while" loop 1. {cloneorder orderid=}

15/06/2013 16:06