Format Issues with SKU and pbv_multi template

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

Format Issues with SKU and pbv_multi template

Postby christopherjmonk@.....com » Sun Jan 26, 2014 8:50 pm

If the product SKU is long, it will overlap the product price in the cart. Is there a way to either wrap it or not display the SKU at all in the cart? If the 'quantity/update' and 'price' columns were moved to the right it would help, too.
Attachments
OPC-pbv_multi.jpg
OPC-pbv_multi.jpg (74.35 KiB) Viewed 14524 times
christopherjmonk@.....com
 
Posts: 25
Joined: Wed Jan 01, 2014 10:05 am

Re: Format Issues with SKU and pbv_multi template

Postby christopherjmonk@.....com » Mon Jan 27, 2014 3:20 pm

I also noticed that although the version of OPC component installed on my system is 2.0.225.220114, the plugin version is 1.7.0 from December 2011. Is this what it is supposed to be?
Attachments
OPC--component-plugin-versions.jpg
OPC--component-plugin-versions.jpg (207.26 KiB) Viewed 14522 times
christopherjmonk@.....com
 
Posts: 25
Joined: Wed Jan 01, 2014 10:05 am

Re: Format Issues with SKU and pbv_multi template

Postby admin » Thu Jan 30, 2014 6:13 pm

Hello, the OPC plugin version is not updated by the installer, only the component's version is.

To fix the SKU, you may want to check this file as far as this is the classic pbv:

To hide it at all:
- search for:
Code: Select all
<div class="op_col4"><?php echo $product['product_sku']; ?></div>

and update to:
Code: Select all
<div style="display: none;" class="op_col4"><?php echo $product['product_sku']; ?></div>


and
Code: Select all
<div class="op_col4"><?php echo OPCLang::_('COM_VIRTUEMART_CART_SKU');?></div>

Code: Select all
<div style="display: none;" class="op_col4"><?php echo OPCLang::_('COM_VIRTUEMART_CART_SKU');?></div>




\components\com_onepage\themes\pbv_multi\onepage.css
and add the original 10 percent to something else, for example price:

Code: Select all
#vmMainPageOPC div#basket_container .op_col5 {
width: 25%;
}

OR
to make the quantity/update smaller and the SKU larger:
Code: Select all
#vmMainPageOPC div#basket_container .op_col6 {
width: 10%;
}

and
Code: Select all
#vmMainPageOPC div#basket_container .op_col4 {
width: 20%;
}
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Format Issues with SKU and pbv_multi template

Postby gislon » Fri Nov 07, 2014 2:46 pm

Hi. I'm also trying to hide SKU on the check out page. I'm using icetheme_store template. I've commented out the col4 section in the template css, but it's still showing. Sorry can't work out which other file needs altering.

Great component, Thank you.
gislon
 
Posts: 1
Joined: Fri Nov 07, 2014 2:38 pm

Re: Format Issues with SKU and pbv_multi template

Postby admin » Wed Nov 12, 2014 4:30 pm

hello, the simplest way to get rid of the column on most of the themes, is to modify the css for the column to "display: none;" and make sure that other columns have proper width.

you can try to add this to onepage.css:

div.op_col4 {
display: none;
}

div.op_col2_2 {
width: 50%;
}

to get rid of the SKU label, you'd need to modify the basket.html.php file. Just make sure it contains only &nbsp; so it renders in full width.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 2

cron