Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - FlexibleMart (SKU# FLEX-00007)

TOPIC: Disable visual buttons

Disable visual buttons 11 years 6 months ago #610

Am looking to work out how to remove the shipping button from being visible in the shopping process

Given that postage depends on the destination postcode/zip and we have only one carrier, this is a distraction
Current;y the button is visible but disabled

Also how to activate the SHARE button?

Check it out here .... bit.ly/UQhWYl
Attachments:
Last Edit: 11 years 6 months ago by Andrew Young. Reason: calrity
The administrator has disabled public write access.

Disable visual buttons 11 years 6 months ago #617

Hi,

First of all, SHARE buttons are already visible in my screen.
ScreenShot2012-10-10at1.34.30AM.png



We have used addthis.com's service for those share buttons, you can try to use some other sources as well, such as sharethis.com
Basically browse that website, choose buttons and generate your HTML code, then put in the productdetails page.

to delete the shipment box from product details page,
open this PHP file: (it is also same file if you want to replace the share buttons service from addthis.com to sharethis.com)

ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/producdetails/default.php
(Default.php, flexv2.php or flexv3.php which ever you are using)

then look for this LINES:
<td valign="middle"><div class="productdetail-boxes">
  <div class="productdetail-boxes-header"><?php echo JText::_('COM_VIRTUEMART_CART_SHIPPING') ?></div>
  <?php // Availability Image
				/* TO DO add width and height to the image */
				if (!empty($this->product->product_availability)) {
					$stockhandle = VmConfig::get('stockhandle','none');
					if($stockhandle=='risetime' and ($this->product->product_in_stock - $this->product->product_ordered)<1){
					?>	<div class="availability">
 
                        <img src="<?php echo JURI::root().'templates/'.$template.'/html/com_virtuemart/assets/images/availability/'.VmConfig::get('rised_availability','7d.gif'); ?>" class="availability" alt="" />
					</div>
				<?php	} else {
					?>
					<div class="availability">
						 <?php 
						    $GifToPNG = substr($this->product->product_availability, 0, -3);
 
						?>
                         <img src="<?php echo JURI::root().'templates/'.$template.'/html/com_virtuemart/assets/images/availability/'.$GifToPNG; ?>png" class="availability" alt="" />
					</div>
				<?php }
				}
 
				 ?>
  </div>
 
     </td>

Delete these lines completely, (Just make sure you start deleting with <td> and end with </td>)
Then The AVAILABILITY IMAGEs WILL BE GONE.

Flexible Support Desk.
The administrator has disabled public write access.

Disable visual buttons 11 years 6 months ago #645

I see no links on "share" hence my question ... 5 browsers 2 OS
I have no other social network mod enabled
So where do I publish this module to have it appear in that button?

BTW I've made the mods as per your suggestion and works fine

Thanks
Last Edit: 11 years 6 months ago by Andrew Young.
The administrator has disabled public write access.

Disable visual buttons 11 years 6 months ago #666

Hi,

Look at the SAME php file which you made some modifications.
This time, search for this CODE Lines:
    <!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" style="padding-left:15px;">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_compact"></a></div>
<s cript type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=xa-4ee9a5e123438594"></s cript>
<!-- AddThis Button END --> 

Starting from <!-- AddThis Button BEGIN --> and ends with <!-- AddThis Button END -->

Those are the HTML code to generate those sharebuttons, and we get this HTML codes from www.addthis.com
I mean; those share buttons are not part of our VM Template, we just copy-paste the HTML that addthis.com gives us.
If they don't work, then it means; addthis.com giving a bad service. As i said before, you can try sharethis.com

Basically open sharethis.com and (simply browse here for quick-start: sharethis.com/publishers/get-sharing-tools)

choose 1. option (website)
in 2.step; choose the button style that you think will fit to website.
in 3. step: select which buttons you want to include (facebook, twitter, email this to friend, etc..)

When you are finish, click END to get the CODE.

It will give you the HTML, then you are going to replace them with the addthis.com's codes. Basically you are changing the service from addthis.com to sharethis.com. Got it?

Flexible Support Team.
Last Edit: 11 years 6 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.170 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo