by wp-admin | Jun 11, 2014 | Virtuemart |
Place following code in that in default_pricelist.php page echo $this->currencyDisplay->createPriceDiv (‘priceWithoutTax’, ”, $this->cart->pricesUnformatted[$pkey], FALSE);
by wp-admin | Jun 11, 2014 | Virtuemart |
The Terms of Service on the cart is not being validated before the user goes to the checkout. (Virtuemart 2.0.20b, Joomla 2.5.9) The fix is to add the following views/cart/tmpl/default.php (after line 61) $document->addScriptDeclaration (” jQuery(document).ready(function($) { $(‘a.vm-button-correct’).click(function(event) { if( $(‘input#tosAccepted’).is(‘:checked’) ) { document.checkoutForm.submit(); } else { $(‘a.terms-of-service’).css(‘background-color’, ‘red’); } }); });...
by wp-admin | Jun 11, 2014 | Virtuemart |
There are two ways: 1. variant: create a product category: discount 20% unpublish this category go to your calculation rule settings -> choose this product category go to your product and choose your calculation rule as discount 2. variant: go to your product product pricing -> add your discounted price in override field -> choose overwrite final or overwrite price to be...
by wp-admin | Jun 11, 2014 | Wordpress |
You can not enhance the drop down list formatselect. But you can enhance with the hook tiny_mce_before_init the second drop down styleselect, there is hide in a default WordPress install. The documentation list all defaults and possibilities. inline – Name of the inline element to produce for example “span”. The current text selection will be wrapped in this inline element. block – Name of the block element to produce for example “h1″. Existing block elements within the selection gets replaced with the new block element. selector – CSS 3 selector pattern to find elements within the selection by. This can be used to apply classes to specific elements or complex things like odd rows in a table. classes – Space separated list of classes to apply the the selected elements or the new inline/block element. styles – Name/value object with CSS tyle items to apply such as color etc. attributes – Name/value object with attributes to apply to the selected elements or the new inline/block element. exact – Disables the merge similar styles feature when used. This is needed for some CSS inheritance issues such as text-decoration for underline/strikethough. wrapper – State that tells that the current format is a container format for block elements. For example a div wrapper or blockquote. The Style Button Note that, by default, the Style dropdown is hidden in WordPress. At first add the button for custom formats to a menu bar of TinyMCE, in example line 2 with hook mce_buttons_2. add_filter( 'mce_buttons_2', 'fb_mce_editor_buttons' ); function fb_mce_editor_buttons( $buttons ) { array_unshift( $buttons, 'styleselect' ); return $buttons; } The Custom Styles Then enhance the drop down of this button. Aslo useful...
by wp-admin | Jun 11, 2014 | Magento |
To allow browsing sub folders or sub domains inside a magento installation add following code to .htaccess file under main magento site. RewriteRule ^demo/ – [L,NC] before “RewriteEngine on” or...