Welcome, Guest
Username: Password: Remember me

TOPIC: card product

card product 2 years 9 months ago #7064

  • 1701
  • 1701's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Good afternoon. I apologize for my English. I purchased your template and you are very grateful for the made work. I would like to learn how to skip step explanation and go immediately to the card product.
In advance, thanks
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.
  • Attachment This image is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

Re: card product 2 years 9 months ago #7074

  • crystal_moon
  • crystal_moon's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Thank you received: 10
  • Karma: 2
If you want to add the button directly adding to cart on the product list, you can to try edit files:
'templates/ot_happyday/css/preset-style-1.css' line 538:
span.addtocart-button input.addtocart-button{
	color: #FFFFFF;
	background-color: #9C496D;
	background-image: url("../images/cart_w.png");
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position: 10px 50%;
	border-color: transparent;
}
change to
.product .spacer span.addtocart-button input.addtocart-button{
	color: #FFFFFF;
	background-color: #9C496D;
	background-image: none;
	border-color: transparent;
}

'templates/ot_happyday/css/preset-style-2.css' line 538:
span.addtocart-button input.addtocart-button{
	color: #FFFFFF;
	background-color: #8CAC52;
	background-image: url("../images/cart_w.png");
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position: 10px 50%;
	border-color: transparent;
}
change to
.product .spacer span.addtocart-button input.addtocart-button{
	color: #FFFFFF;
	background-color: #8CAC52;
	background-image: none;
	border-color: transparent;
}

'templates/ot_happyday/html/mod_virtuemart_product/single.php' line 3,
'templates/ot_happyday/html/mod_virtuemart_product/default.php' line3
add
vmJsApi::jPrice();

'templates/ot_happyday/html/com_virtuemart/virtuemart/default_products.php' line 2,
'templates/ot_happyday/html/com_virtuemart/category/default.php' line 27,
'templates/ot_happyday/html/com_virtuemart/productdetails/default_relatedproducts.php' line 22
add
require(JPATH_SITE . DS . 'modules' . DS . 'mod_virtuemart_product' . DS . 'helper.php');
vmJsApi::jPrice();

'templates/ot_happyday/html/mod_virtuemart_product/single.php' line 78, 'templates/ot_happyday/html/mod_virtuemart_product/default.php' line 91 & line 166 replace
<?php echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'product-details'));?>

'templates/ot_happyday/html/com_virtuemart/virtuemart/default_products.php' line 117 replace
echo JHTML::link ( JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id ), JText::_ ( 'COM_VIRTUEMART_PRODUCT_DETAILS' ), array ('title' => $product->product_name, 'class' => 'product-details' ) );

'templates/ot_happyday/html/com_virtuemart/category/default.php' line 349 replace
echo JHTML::link($product->link, '<span>'.JText::_('COM_VIRTUEMART_PRODUCT_DETAILS').'</span>', array('title' => $product->product_name,'class' => 'product-details'));

'templates/ot_happyday/html/com_virtuemart/productdetails/default_relatedproducts.php' line 83
<?php echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'product-details')); ?>

with
<?php echo mod_virtuemart_product::addtocart ($product);?>
Last Edit: 2 years 9 months ago by crystal_moon.
The administrator has disabled public write access.
Time to create page: 0.173 seconds