Author Topic: Cart Page Fields & Modifications  (Read 92074 times)

J3DI13

  • Jr. Member
  • **
  • Posts: 77
    • GeekDimm
  • VirtueMart Version: 2.0.24c
Re: Cart Page Fields & Modifications
« Reply #105 on: April 03, 2014, 08:39:27 am »
Hi Hutson

I have added the code so kindly supplied by you but i see it only works when not in the override, which is weird maybe i am not doing the override properly. I have placed in my HTML folder of my template keeping the same file structure as the component or must i just place it open in the HTML folder? Anyway for now its not really important as i need to get the rest sorted out. I have attached an image of what the cart now looks like 1 query would be the 'net-total' header title looks funky, could it be a language file that is causing that? (Fixed this with the language file by adding in a new line)

I see now that VAT column is not displaying any VAT in the cart, would that be a config in the backend?



Many Thanks


[attachment cleanup by admin]

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2551
  • VirtueMart Version: 3.2.3
Re: Cart Page Fields & Modifications
« Reply #106 on: April 03, 2014, 10:35:33 am »
Yes you need to config the Show tax in cart in order to get tax to show and I think you also need to config the display of prices to show tax

<?php if (VmConfig::get ('show_tax')) { ?>

Code: [Select]
<?php if (VmConfig::get ('show_tax')) { ?>
<td align="right"><?php echo "<span class='priceColor2'>" $this->currencyDisplay->createPriceDiv ('taxAmount'''$this->cart->pricesUnformatted[$pkey], FALSEFALSE$prow->quantity) . "</span>" ?></td>
<?php ?>
<td align="right"><?php echo "<span class='priceColor2'>" $this->currencyDisplay->createPriceDiv ('discountedPriceWithoutTax'''$this->cart->pricesUnformatted[$pkey], FALSEFALSE$prow->quantity) . "</span>" ?></td>
<td colspan="1" align="right">
<?php
// Quorvia no need for this rubbish!
//if (VmConfig::get ('checkout_show_origprice', 1) && !empty($this->cart->pricesUnformatted[$pkey]['basePriceWithTax']) && $this->cart->pricesUnformatted[$pkey]['basePriceWithTax'] != $this->cart->pricesUnformatted[$pkey]['salesPrice']) {
// echo '<span class="line-through">' . $this->currencyDisplay->createPriceDiv ('basePriceWithTax', '', $this->cart->pricesUnformatted[$pkey], TRUE, FALSE, $prow->quantity) . '</span><br />';
//}
//elseif (VmConfig::get ('checkout_show_origprice', 1) && empty($this->cart->pricesUnformatted[$pkey]['basePriceWithTax']) && $this->cart->pricesUnformatted[$pkey]['basePriceVariant'] != $this->cart->pricesUnformatted[$pkey]['salesPrice']) {
// echo '<span class="line-through">' . $this->currencyDisplay->createPriceDiv ('basePriceVariant', '', $this->cart->pricesUnformatted[$pkey], TRUE, FALSE, $prow->quantity) . '</span><br />';
//}
echo $this->currencyDisplay->createPriceDiv ('salesPrice'''$this->cart->pricesUnformatted[$pkey], FALSEFALSE$prow->quantity?>
</td>


You are not placing the override in the right place if it only functions if you hack the default views
They should be placed in:-

\templates\your template\html\com_virtuemart\cart\
regards
A

Joomla 3.7.2
php 5.6 + php 7

J3DI13

  • Jr. Member
  • **
  • Posts: 77
    • GeekDimm
  • VirtueMart Version: 2.0.24c
Re: Cart Page Fields & Modifications
« Reply #107 on: April 03, 2014, 10:51:22 am »
Hi

I have 'Show Tax in Cart' selected in the backend and have added the code to config the display <?php if (VmConfig::get ('show_tax')) { ?> so this is what the VAT column code looks like....
Code: [Select]
<?php if (VmConfig::get ('show_tax')) { ?>
<th align="center"><?php echo "<span  class='priceColor2'>" JText::('COM_VIRTUEMART_CART_SUBTOTAL_NET_AMOUNT') . '</span>' ?></th>
<?php ?>


thanks

J3DI13

  • Jr. Member
  • **
  • Posts: 77
    • GeekDimm
  • VirtueMart Version: 2.0.24c
Re: Cart Page Fields & Modifications
« Reply #108 on: April 03, 2014, 11:25:57 am »
Ok so i have managed to get all the columns outputting a display, i am a bit worried that its not outputting the correct data tho. please see code for the VAT column below and jpeg attached.

Code: [Select]
<?php if (VmConfig::get ('show_tax')) { ?>
<th align="center"><?php echo "<span  class='priceColor2'>" JText::('COM_VIRTUEMART_CART_SUBTOTAL_NET_AMOUNT') . '</span>' ?></th>
<?php ?>


and the bottom  Vat row
Code: [Select]
<?php if (VmConfig::get ('show_tax')) { ?>
<td align="right"><?php echo "<span class='priceColor2'>" $this->currencyDisplay->createPriceDiv ('taxAmount'''$this->cart->pricesUnformatted[$pkey], FALSEFALSE$prow->quantity) . "</span>" ?></td>
    <?php ?>

[attachment cleanup by admin]

nmihos

  • Beginner
  • *
  • Posts: 16
Re: Cart Page Fields & Modifications
« Reply #109 on: May 04, 2014, 00:35:34 am »
Hello,

I want to add a form to my cart, where a seller can fill some chaeckboxes for the customer and some notes. But i want this form to be shown only for admins and not for the other users (or to be accesible by shopper group). A good idea is to edit the shipment form, but how can i make this form to be viewable only by the sellers?

nmihos

  • Beginner
  • *
  • Posts: 16
Re: Cart Page Fields & Modifications
« Reply #110 on: May 04, 2014, 15:25:33 pm »
I set my sellers into the Shopper Group Sellers. I made a payment method which i call Sales Method and it is available and default only for the Selleres. Now i want the Shipment Form to appear when this payment method is selected.

martian474

  • Beginner
  • *
  • Posts: 7
Re: Cart Page Fields & Modifications
« Reply #111 on: May 26, 2014, 07:23:50 am »
Hi Admin,

Please help me. I want to add option(radio button/ dropdown) on my cart page that will add additional value to the total price.
for example:

1. Free pick-up (No additional charge)
2. Two days delivery( Additional charge).


Thank you very much!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Hero Member
  • *
  • Posts: 7485
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Cart Page Fields & Modifications
« Reply #112 on: May 26, 2014, 10:50:29 am »
This is your 3rd identical post for this question in 3 different topics - if you want to annoy the contributors your going the right way about it....
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

martian474

  • Beginner
  • *
  • Posts: 7
Re: Cart Page Fields & Modifications
« Reply #113 on: June 20, 2014, 07:41:10 am »
Hi,

I want the registered shopper can see the details and checkout only while the others will only see joomla login. Please help. Thanks




[attachment cleanup by admin]

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2551
  • VirtueMart Version: 3.2.3
Re: Cart Page Fields & Modifications
« Reply #114 on: June 20, 2014, 10:13:52 am »
martian

Create yourself an overrride to
components/com_virtuemart/views/cart/tmpl/default.php

Replace
Code: [Select]

<?php echo shopFunctionsF::getLoginForm ($this->cartFALSE);




With

Code: [Select]


<?php echo shopFunctionsF::getLoginForm ($this->cartFALSE);
// check to see if the user is logged in
    
if(empty($this->cart->user->_id)){
        
// Close the <div class="cart-view">
        
echo "</div>";
        return;  
//skip the rest of this template


    
}
regards
A

Joomla 3.7.2
php 5.6 + php 7

KWinston

  • Beginner
  • *
  • Posts: 17
Re: Cart Page Fields & Modifications
« Reply #115 on: September 30, 2014, 23:11:02 pm »
What an excellent thread!  I am trying to modify the Checkout Button in VM2.6.10/ Joomla 2.5.9.  I was directed to look for style.css. ut am having a tough time finding it. The modification my client wants is to remove it altogether and replace it with a button that links directly to BluePay. 

Thoughts?

Your insight is very much appreciated.  Thanks!

Alice67

  • Beginner
  • *
  • Posts: 1
Re: Cart Page Fields & Modifications
« Reply #116 on: December 15, 2014, 19:49:45 pm »
?php if ($this->cart->cartData['paymentName'] == 'No payment selected') {?> This shows when the payment has NOT been selected<?php }?>
_Alice_

bob@robertclinton.com

  • Beginner
  • *
  • Posts: 23
Re: Cart Page Fields & Modifications
« Reply #117 on: March 28, 2015, 20:46:30 pm »
Is there some code that will allow the shopper to toggle shipping addresses if they have more than one entered?

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2551
  • VirtueMart Version: 3.2.3
Re: Cart Page Fields & Modifications
« Reply #118 on: March 29, 2015, 11:41:10 am »
that is already part of base functionality

what version are you using
regards
A

Joomla 3.7.2
php 5.6 + php 7