- Posts: 4
- Thank you received: 0
Add to Cart add to the list of products.
- Fernando Sanchez
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
11 years 2 months ago #7065
by Fernando Sanchez
Add to Cart add to the list of products. was created by Fernando Sanchez
Good morning,
want to add the button directly adding to cart on the product list. Similar to how we have other projects as www.farmaciauniversal24h.com/tienda-onli...a-facial-y-ojos.html
thank you very much
want to add the button directly adding to cart on the product list. Similar to how we have other projects as www.farmaciauniversal24h.com/tienda-onli...a-facial-y-ojos.html
thank you very much
Please Log in or Create an account to join the conversation.
- Nguyen Mai
-
- Offline
- Senior Boarder
-
Less
More
- Posts: 47
- Thank you received: 10
11 years 2 months ago - 11 years 2 months ago #7073
by Nguyen Mai
Replied by Nguyen Mai on topic Re: Add to Cart add to the list of products.
Hi,
If you want to add the button directly adding to cart on the product list, you can to try edit files:
'templates/ot_malesuada/css/preset-style-1.css' line 545:
change to
'templates/ot_malesuada/css/preset-style-2.css' line 545:
change to
'templates/ot_malesuada/html/mod_virtuemart_product/single.php' line 3,
'templates/ot_malesuada/html/mod_virtuemart_product/default.php' line3
add
'templates/ot_malesuada/html/com_virtuemart/virtuemart/default_products.php' line 2,
'templates/ot_malesuada/html/com_virtuemart/category/default.php' line 27,
'templates/ot_malesuada/html/com_virtuemart/productdetails/default_relatedproducts.php' line 22
add
'templates/ot_malesuada/html/mod_virtuemart_product/single.php' line 77, 'templates/ot_malesuada/html/mod_virtuemart_product/default.php' line 115 & line 213 replace
'templates/ot_malesuada/html/com_virtuemart/virtuemart/default_products.php' line 133 replace
'templates/ot_malesuada/html/com_virtuemart/category/default.php' line 370 replace
'templates/ot_malesuada/html/com_virtuemart/productdetails/default_relatedproducts.php' line 98 replace
with
If you want to add the button directly adding to cart on the product list, you can to try edit files:
'templates/ot_malesuada/css/preset-style-1.css' line 545:
Code:
span.addtocart-button input.addtocart-button{
color: #FFFFFF;
background-color: #7FDAE0;
background-image: none;
border-color: transparent;
}
Code:
.product .spacer span.addtocart-button input.addtocart-button{
color: #FFFFFF;
background-color: #7FDAE0;
background-image: none;
border-color: transparent;
}
'templates/ot_malesuada/css/preset-style-2.css' line 545:
Code:
span.addtocart-button input.addtocart-button{
color: #FFFFFF;
background-color: #ECBB53;
background-image: none;
border-color: transparent;
}
Code:
.product .spacer span.addtocart-button input.addtocart-button{
color: #FFFFFF;
background-color: #ECBB53;
background-image: none;
border-color: transparent;
}
'templates/ot_malesuada/html/mod_virtuemart_product/single.php' line 3,
'templates/ot_malesuada/html/mod_virtuemart_product/default.php' line3
add
Code:
vmJsApi::jPrice();
'templates/ot_malesuada/html/com_virtuemart/virtuemart/default_products.php' line 2,
'templates/ot_malesuada/html/com_virtuemart/category/default.php' line 27,
'templates/ot_malesuada/html/com_virtuemart/productdetails/default_relatedproducts.php' line 22
add
Code:
require(JPATH_SITE . DS . 'modules' . DS . 'mod_virtuemart_product' . DS . 'helper.php');
vmJsApi::jPrice();
'templates/ot_malesuada/html/mod_virtuemart_product/single.php' line 77, 'templates/ot_malesuada/html/mod_virtuemart_product/default.php' line 115 & line 213 replace
Code:
<?php echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'product-details'));?>
'templates/ot_malesuada/html/com_virtuemart/virtuemart/default_products.php' line 133 replace
Code:
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_malesuada/html/com_virtuemart/category/default.php' line 370 replace
Code:
echo JHTML::link($product->link, '<span>'.JText::_('COM_VIRTUEMART_PRODUCT_DETAILS').'</span>', array('title' => $product->product_name,'class' => 'product-details'));
'templates/ot_malesuada/html/com_virtuemart/productdetails/default_relatedproducts.php' line 98 replace
Code:
<?php echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'product-details')); ?>
with
Code:
<?php echo mod_virtuemart_product::addtocart ($product);?>
Last edit: 11 years 2 months ago by Nguyen Mai.
Please Log in or Create an account to join the conversation.
- Fernando Sanchez
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 4
- Thank you received: 0
11 years 2 months ago #7080
by Fernando Sanchez
Replied by Fernando Sanchez on topic Re: Add to Cart add to the list of products.
Thank you very much.
I have a question.
From step
"templates / ot_malesuada / html / mod_virtuemart_product / single.php 'line 77,' templates / ot_malesuada / html / mod_virtuemart_product / default.php 'line 115 & line 213 replace"
Indica replace the code with "<php echo mod_virtuemart_product :: addtocart ($ product);?>"
I have a question.
From step
"templates / ot_malesuada / html / mod_virtuemart_product / single.php 'line 77,' templates / ot_malesuada / html / mod_virtuemart_product / default.php 'line 115 & line 213 replace"
Indica replace the code with "<php echo mod_virtuemart_product :: addtocart ($ product);?>"
Please Log in or Create an account to join the conversation.
- Nguyen Mai
-
- Offline
- Senior Boarder
-
Less
More
- Posts: 47
- Thank you received: 10
11 years 2 months ago #7083
by Nguyen Mai
Replied by Nguyen Mai on topic Re: Add to Cart add to the list of products.
All ('templates/ot_malesuada/html/mod_virtuemart_product/single.php' line 77, 'templates/ot_malesuada/html/mod_virtuemart_product/default.php' line 115 & line 213, 'templates/ot_malesuada/html/com_virtuemart/virtuemart/default_products.php' line 133, 'templates/ot_malesuada/html/com_virtuemart/category/default.php' line 370, 'templates/ot_malesuada/html/com_virtuemart/productdetails/default_relatedproducts.php' line 98) replace with
Code:
<?php echo mod_virtuemart_product::addtocart ($product);?>
Please Log in or Create an account to join the conversation.
Time to create page: 0.190 seconds