- Thank you received: 0
ADD TO CHART....button
-
fruhelle@sol.dk
-
Topic Author
- New Member
-
Less
More
11 years 4 months ago #34512
by fruhelle@sol.dk
ADD TO CHART....button was created by fruhelle@sol.dk
Hi
www.one-for-all.dk/hotstart/
I want the add to chart button away from the first product, and only when you go to product detail and there after, is it possibel to remove the first?
Best regards
Helle
www.one-for-all.dk/hotstart/
I want the add to chart button away from the first product, and only when you go to product detail and there after, is it possibel to remove the first?
Best regards
Helle
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 4 months ago #34520
by ivan.milic
Replied by ivan.milic on topic ADD TO CHART....button
Add this css to layout.css:
.sparky_home DIV.addtocart-bar{
display:none;
}
.sparky_home DIV.addtocart-bar{
display:none;
}
Please Log in to join the conversation.
-
fruhelle@sol.dk
-
Topic Author
- New Member
-
Less
More
- Thank you received: 0
11 years 4 months ago - 11 years 4 months ago #34524
by fruhelle@sol.dk
Replied by fruhelle@sol.dk on topic ADD TO CHART....button
Thx for your fast response.
It works on the first entrance, witch is right. But it also removes it under product details, i want the button under product details?
I want the layout from the first page as catagories with no buttons, and when you move to product details, you are able to se our different products under that specific catagori, when you clilc on that product there should be a button not before. Why i want this is the only way i can get the layout that way.
Best regards
Helle
It works on the first entrance, witch is right. But it also removes it under product details, i want the button under product details?
I want the layout from the first page as catagories with no buttons, and when you move to product details, you are able to se our different products under that specific catagori, when you clilc on that product there should be a button not before. Why i want this is the only way i can get the layout that way.
Best regards
Helle
Last edit: 11 years 4 months ago by fruhelle@sol.dk.
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 4 months ago #34536
by ivan.milic
Replied by ivan.milic on topic ADD TO CHART....button
In
templates\hot_watches\html\com_virtuemart\virtuemart\default_products.php
form line ~83 to ~112:
wrap all of that with HTMl comment start/end sequence <!-- and -->
templates\hot_watches\html\com_virtuemart\virtuemart\default_products.php
form line ~83 to ~112:
Code:
<form method="post" class="product" action="index.php" id="addtocartproduct<?php echo $product->virtuemart_product_id ?>">
<div class="addtocart-bar">
<?php // Display the quantity box ?>
<!-- <label for="quantity<?php echo $this->product->virtuemart_product_id;?>" class="quantity_box"><?php echo JText::_('COM_VIRTUEMART_CART_QUANTITY'); ?>: </label> -->
<span class="quantity-box">
<input type="text" class="quantity-input" name="quantity[]" value="1" />
</span>
<span class="quantity-controls">
<input type="button" class="quantity-controls quantity-plus" />
<input type="button" class="quantity-controls quantity-minus" />
</span>
<?php // Display the quantity box END ?>
<?php // Add the button
$button_lbl = JText::_('COM_VIRTUEMART_CART_ADD_TO');
$button_cls = ''; //$button_cls = 'addtocart_button';
if (VmConfig::get('check_stock') == '1' && !$this->product->product_in_stock) {
$button_lbl = JText::_('COM_VIRTUEMART_CART_NOTIFY');
$button_cls = 'notify-button';
} ?>
<?php // Display the add to cart button ?>
<span class="addtocart-button">
<input type="submit" name="addtocart" class="addtocart-button" value="<?php echo $button_lbl ?>" title="<?php echo $button_lbl ?>" />
</span>
<div class="clear"></div>
</div>
<?php // Display the add to cart button END ?>
<input type="hidden" class="pname" value="<?php echo $product->product_name ?>" />
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="view" value="cart" />
<noscript><input type="hidden" name="task" value="add" /></noscript>
<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>" />
<?php /** @todo Handle the manufacturer view */ ?>
<input type="hidden" name="virtuemart_manufacturer_id" value="<?php echo $product->virtuemart_manufacturer_id ?>" />
<input type="hidden" name="virtuemart_category_id[]" value="<?php echo $product->virtuemart_category_id ?>" />
</form>
wrap all of that with HTMl comment start/end sequence <!-- and -->
Please Log in to join the conversation.
-
fruhelle@sol.dk
-
Topic Author
- New Member
-
Less
More
- Thank you received: 0
11 years 4 months ago #34552
by fruhelle@sol.dk
Replied by fruhelle@sol.dk on topic ADD TO CHART....button
Okay that diddent work, i got --> on my site and plus minus sign also, now i have deleted it, and it looks right. Is it possibel to catagories to look like whats on my site now? instead of what i have now products? i love that layout.
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 4 months ago #34561
by ivan.milic
Replied by ivan.milic on topic ADD TO CHART....button
If you got that on site that means you put it incorrectly. Just backup file someware and just remove that code
Please Log in to join the conversation.
Time to create page: 0.154 seconds