Children categories

K2 CCK - Blog

K2 CCK - Blog (3)

Tutorials relating the the CCK - Content Construction Kit K2, which we tend to install on most of our websites

View items...
Wednesday, 15 September 2010 13:08

Adding a Coupon

Written by
In this tutorial we will be creating a new coupon using virtuemarts standard coupon code. We also sometimes add in a more advanced 3rd party coupon code extension called AWO pro. If you are interested in using this, please contact us.
  • Firstly we are assuming you are logged in to the admin panel of Virtuemart either by the front end or back end of your website.
  • Navigate to Coupon >> New Coupon.
  • Enter the coupon code. This can be anything you want - christmas10% , dDgu&6hk, 5poundoff, etc.
  • You can choose if it's for a percentage off the order or an amount off the order.
  • You can choose the type of coupon as well. A Gift Coupon can only be used once. A Permanent Coupon has no limits. if using a permanent coupon you need to remember to return to the coupon page and disable it when you no longer need it.
  • Enter the value of the coupon.
  • Save the coupon.
  • The coupon has now been created & be used during the checkout procedure.

I recently needed a simple way to inform users in countries that shipping is not set up as standard, to contact us for shipping costs. The standard message if there is no shipping set up is "Please Select a Shipping Method", which i s a bit annoying if there isn't one showing up and the user will go elsewhere.

Here's my simple solution to alter that text;

  1. Go to /administrator/components/com_virtuemart/languages/common/english.php
  2. download english.php and open in a text editor/ BBE/Dreamweaver
  3. Line: 293 'PHPSHOP_CHECKOUT_ERR_NO_SHIP'.
  4. Change the standard text "Please select a Shipping Method" to "whatever you want"
  5. Save your file - with exact same name
  6. Upload by FTP
  7. Clear joomla site cache
  8. Check in front end
Wednesday, 11 August 2010 12:33

Show Attributes on Browse Page

Written by
To show Simple Attributes on the browse page, apply the following changes to Virtuemart:

After line 16 in addtocart_form.tpl.php (browse template, includes folder) add:
<?php echo $ps_product_attribute->list_advanced_attribute($product_id);?><br />

This shows the combobox for your simple attributes (for example: a color picker)


 

Around line 410 in shop.browse.php (administrator component, html folder) comment/remove the following bit:

&& !ps_product::product_has_attributes( $db_browse->f('product_id'), true )
leave the rest of the if statement alive
this shows the add to cart button, that is normally hidden when you have simple attributes set up.


Rate this item
(0 votes)
You will ned to have added a venue first  before you can add an event, If you havent already done this , see the add venue tutorial here You can only edit & add Events…
Rate this item
(0 votes)
You can only edit & add venues in event list if we have set up front end editing on your site for you. If we havent, please get in toch with us and we'll do…
<< Start < 1 3 > >>
Page 3 of 4

Who's Online

We have 5 guests online