Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Link spacing in Virtuemart product details page.

Posted on 2011-05-10
10
Medium Priority
?
781 Views
Last Modified: 2012-05-11
Hi.

I am trying to find the .php file that will let me add a <br> in between the short product description and the product details link in Virtuemart.   If you have a look at the attached image, you will see a red arrow where I would like to add some space.   I would just like to be able to add a space so the text does not look so squashed.

I am assuming this is something to do with the Virteumart theme (which is the default theme).  The file for this is;
/components/com_virtuemart/themes/default/theme.php - but I cannot locate the right section.

This is a products page, not the flypage for that product.

Thanks.


Thanks.
productDetails.jpg
0
Comment
Question by:SpencerKarnovski
  • 7
  • 3
10 Comments
 
LVL 12

Accepted Solution

by:
Panagiotis S earned 2000 total points
ID: 35729762
find the browse page that you use like browse_1.php in the components/com_virtuemart/themes/default/templates/browse folder
0
 

Author Comment

by:SpencerKarnovski
ID: 35729767
Will have a look now, thanks for the quick response.
0
 

Author Comment

by:SpencerKarnovski
ID: 35729907
I am using browse_1.php - and have access to the file.  But when I add a <br> to the product details section, nothing happens.  So I decided to c&p the entire product details link, from the php file, and on my site the product details were still there.

So this leads me to believe this is the wrong page - even though I am using browse_1.php.

I have added the code below to show you where I placed the <br>.  Even so, I can remove an entire section, and my page stays the same.

Any ideas.


<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
mm_showMyFileName(__FILE__);
 ?>
 <div class="browseProductContainer">
        
        
        <h3 class="browseProductTitle"><a title="<?php echo $product_name ?>" href="<?php echo $product_flypage ?>">
            <?php echo $product_name ?></a>
        </h3>
      
        <div class="browsePriceContainer">
            <?php echo $product_price ?>
        </div>
        
        <div class="browseProductImageContainer">
	        <script type="text/javascript">//<![CDATA[
	        document.write('<a href="javascript:void window.open(\'<?php echo $product_full_image ?>\', \'win2\', \'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=<?php echo $full_image_width ?>,height=<?php echo $full_image_height ?>,directories=no,location=no\');">');
	        document.write( '<?php echo ps_product::image_tag( urldecode($product_thumb_image), 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ?></a>' );
	        //]]>
	        </script>
	        <noscript>
	            <a href="<?php echo $product_full_image ?>" target="_blank" title="<?php echo $product_name ?>">
	            <?php echo ps_product::image_tag( urldecode($product_thumb_image), 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ?>
	            </a>
	        </noscript>
        </div>
        <br >
        <div class="browseRatingContainer">
        <?php echo $product_rating ?>
        </div>
		
        <div class="browseProductDescription">
            <?php echo $product_s_desc ?>&nbsp;
            <a href="<?php echo $product_flypage ?>" title="<?php echo $product_details ?>"><br />
			<?php echo $product_details ?>...</a>
        </div>
     
        <span class="browseAddToCartContainer">
        <?php echo $form_addtocart ?>
        </span>

</div>

Open in new window

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:SpencerKarnovski
ID: 35730067
Yes, I have added a <br> to most sections on that page.  It does not change anything on my category browse page.
0
 

Author Comment

by:SpencerKarnovski
ID: 35730200
Any ideas why, when editing this php file, it does nothing to the category browse page?
Thanks.
0
 
LVL 12

Expert Comment

by:Panagiotis S
ID: 35731343
are you sure that this is the browse file.

Open one of your categories and see which one is the browse page
0
 

Author Comment

by:SpencerKarnovski
ID: 35731403
Hi

Well in the admin config I have it set to browse_1.php.  But I have opened my cat as you suggested and it says "managed".  

Thanks.
0
 

Author Comment

by:SpencerKarnovski
ID: 35731442
When I change the category browse page to browse_1.php - it ruins the formatting.  So, what is the "managed" page, and how can I access that.

Thanks Panagiotiss.
0
 
LVL 12

Expert Comment

by:Panagiotis S
ID: 35731572
its in the same directory as the browse_1
0
 

Author Closing Comment

by:SpencerKarnovski
ID: 35755020
Helped
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Suggested Courses
Course of the Month20 days, 21 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question