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 “RewriteBase”
Learn MoreTo 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 “RewriteBase”
Learn MoreSometimes we may be struck with some errors like white screen of death and other errors.
Then to know what causing the error simplifies our problem. To enable errors on joomla website do the following.
Put the following code at the END of the configuration.php file BEFORE the closing ?>
ini_set( ‘display_errors’, true );
error_reporting( E_ALL );
And also you can try following tips too,
1. Check server error logs (not access logs) if you have access to them. (cPanel or other control panels often allow this)
2. Go to Joomla Administration → Global configuration and enable Error Reporting to Maximum, you can also turn on debugging.
3. Check the source of the white page – there might be still some HTML/Errors in the Page Source (Look in your web browser for the “View Source” option)
Hope these helps.
Learn MorePlace following code in that
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’);
}
});
});
“);
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 taxed
Learn More