Welcome, Guest
Username: Password: Remember me

TOPIC: Help with product categories/ shipping customizati

Help with product categories/ shipping customizati 9 years 7 months ago #787

  • dotcomdee
  • dotcomdee's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 28
  • Thank you received: 7
  • Karma: 0
Hi

On my categories/home/featured products page etc, how can I change it from saying "add to cart"? I want it to say "more info" and then when they click on the product page, they can "add to cart" there. The option from the default page doesnt add the product to cart so Im worried users will get confused and think its added when its not.

Then, on the categories page, how can I change it that when a reader clicks the image thumbnail from the cat they must be taken to the product, not shown the full size image? I dont mind if they can see full size image on product page, but not from the categories.

Lastly - with the shipping order form, Im setting my shipping that users cant input a shipping address - they can only add a "code" and which ever code they have entered, their products will be sent to that destination. Do you have any suggestions on how I can remove the "shipping address" (but leave the rep code feature available) from the form? I just want to illuminate any confusion.

Thank you!
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: Help with product categories/ shipping customizati 9 years 7 months ago #796

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 908
  • Thank you received: 568
  • Karma: 25
Hi,
To change Add to cart text to Details text, edit templates/ot_boutiquebox/html/com_virtuemart/category/default.php and find this code:
<?php // Product Details Button
//echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'product-details'));
echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_CART_ADD_TO'), array('title' => $product->product_name,'class' => 'product-details'));
?>
pls change to:
<?php // Product Details Button
echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'product-details'));
//echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_CART_ADD_TO'), array('title' => $product->product_name,'class' => 'product-details'));
?>
Lastly - with the shipping order form, Im setting my shipping that users cant input a shipping address - they can only add a "code" and which ever code they have entered, their products will be sent to that destination. Do you have any suggestions on how I can remove the "shipping address" (but leave the rep code feature available) from the form?
There is no solution for this now. You can go to VMED to fine some shipping module which fit your need.

Thanks
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: Help with product categories/ shipping customizati 9 years 7 months ago #799

  • dotcomdee
  • dotcomdee's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 28
  • Thank you received: 7
  • Karma: 0
Thanks for the reply, Seems to be working, but not on the home/ featured page? Only on the product category. I assume I should be changing it on the home page in HTML as well?

I dont think you answered my second question?
"Then, on the categories page, how can I change it that when a reader clicks the image thumbnail from the cat they must be taken to the product, not shown the full size image? I dont mind if they can see full size image on product page, but not from the categories."

On the homepage, when a reader clicks the product or image it takes them to the page, but on the cat pages, when they click the image it takes them to the product image full view file? HOw do I change it to click to product page?

Thanks
Last Edit: 9 years 7 months ago by dotcomdee.
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: Help with product categories/ shipping customizati 9 years 7 months ago #805

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 908
  • Thank you received: 568
  • Karma: 25
Hi,
1. To change "Add to cart" text to "Details.." in the frontpage (that show by mod_virtuemart_product), you need edit file templates/ot_boutiquebox/html/mod_virtuemart_product/default.php and find this code:
echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_CART_ADD_TO'), array('title' => $product->product_name,'class' => 'product-details'));
then replace it by:
echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'product-details'));

2. Click thumbnail image in cate and it popup, click link or button will go to details -> that is VM rule. But you can do a hack (like the product module in frontpage as we done) by do this:
edit templates/ot_boutiquebox/html/com_virtuemart/category/default.php and find this code:
<div class="product-image">
<?php 
echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"');
?>
</div>
change to:
<div class="product-image">
<?php 
$image = $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'');
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),$image,array('title' => $product->product_name) );
?>
</div>

Thanks
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: Help with product categories/ shipping customizati 9 years 5 months ago #1166

  • dotcomdee
  • dotcomdee's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 28
  • Thank you received: 7
  • Karma: 0
Hi

I treid this it did not work :(

All it did is link the image thumbnail to the image file

// Show Products ?>
		<div class="product floatleft<?php echo $Browsecellwidth . $show_vertical_separator ?>">
			<div class="spacer">
				<div class="ot-custom-products-page">
					<div class="product-image">
						<?php 
$image = $product->images[0]->displayMediaThumb('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id="'.$product->product_name.'" ',true,'');
echo JHTML::_('link', JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.$product->virtuemart_category_id),$image,array('title' => $product->product_name) );
?>
</div>

How can I change it so that the thumbnail either links to the product or have no link at all?
The administrator has disabled public write access.

Re: Help with product categories/ shipping customizati 9 years 5 months ago #1168

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 908
  • Thank you received: 568
  • Karma: 25
Hi,
what file do you make change to? please change the file I mentioned and remember to upload it.
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.

Re: Help with product categories/ shipping customizati 9 years 5 months ago #1170

  • dotcomdee
  • dotcomdee's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 28
  • Thank you received: 7
  • Karma: 0
Hello

Thanks for the reply

Point 1 worked well, point 2 didnt. It just links the category page image to the file (not in a pop up anmore). I just tried again and its still not working.

Can I PM the link to you? Id prefer not to list the site publically

Thank you
The administrator has disabled public write access.

Re: Help with product categories/ shipping customizati 9 years 5 months ago #1173

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 908
  • Thank you received: 568
  • Karma: 25
Hi,
As your request about thumbnail link in:
www.omegatheme.com/ot-boutique-box/updat...tch-issues.html#1169

So if you just want show thumbnail and not link or popup when click to thumbnail, edit templates/ot_boutiquebox/html/com_virtuemart/category/default.php and modify as this:
<div class="product-image">
<?php 
$image = $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'');
echo $image;
?>
</div>
If want have link from thumbnail to detail page:
<div class="product-image">
<?php 
$image = $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'');
echo '<a href="'.$product->link.'" title="'.$product->product_name.'" >'.$image.'</a>';
?>
</div>


If you don't want display short description, in above file, find and remove this code:
<?php // Product Short Description
if(!empty($product->product_s_desc)) { ?>
<div class="product-s-desc">
	<p class="product_s_desc">
	<?php echo shopFunctionsF::limitStringByWord($product->product_s_desc, 50, '...') ?>
	</p>
</div>
<?php } ?>

To remove add to cart, yellow box, price, remove this code:
<div class="product-price-addtocart">
....
</div>

That's all in category page you need?

Thanks
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
Last Edit: 9 years 5 months ago by linh_omg.
The administrator has disabled public write access.
Time to create page: 0.220 seconds