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

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: Cart Page Fields & Modifications
« Reply #45 on: April 22, 2013, 19:19:49 pm »
I had to add the damn button back to the bottom. Do you have any advice on how to skip the TOS. I tried to disable it even on the stock vm and the damn check still shows and it gives an error that the TOS was not checked. :(

THANK YOU for the date code. Being I use an image for shipping time I will just have to modify it with a solid number. :)

http://forum.virtuemart.net/index.php?topic=114617.0
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: Cart Page Fields & Modifications
« Reply #46 on: April 22, 2013, 19:23:09 pm »
$daystoship== 0;

have you tried?


J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Stonedfury

  • Jr. Member
  • **
  • Posts: 266
    • Stonedfury
  • Skype Name: Stonedfury
  • VirtueMart Version: 2.0.24
Re: Cart Page Fields & Modifications
« Reply #47 on: April 22, 2013, 20:03:31 pm »
I get "Ship Date 12/31" for output of today's date.
The exact output is
Ship Date 12/31
- Estimated Arrival Date 04/25 for Orders placed within U.S.A. before 3 p. m. PST Today -
No such thing as a stupid question, only a stupid answer. I won't ask if I know the answer or found it using the search as you suggested.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: Cart Page Fields & Modifications
« Reply #48 on: April 22, 2013, 21:21:27 pm »
i just tried it an it works for me
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Stonedfury

  • Jr. Member
  • **
  • Posts: 266
    • Stonedfury
  • Skype Name: Stonedfury
  • VirtueMart Version: 2.0.24
Re: Cart Page Fields & Modifications
« Reply #49 on: April 22, 2013, 22:14:37 pm »
I am not having the best of days. It wont load todays date. My php is seemly more and more piss poor. :( I hate Mondays too.

I have other issues to with the checkout button code. I think it is linked to the TOS in the long run.
No such thing as a stupid question, only a stupid answer. I won't ask if I know the answer or found it using the search as you suggested.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: Cart Page Fields & Modifications
« Reply #50 on: April 22, 2013, 22:31:01 pm »
I am not having the best of days. It wont load todays date. My php is seemly more and more piss poor. :( I hate Mondays too.

I have other issues to with the checkout button code. I think it is linked to the TOS in the long run.

are you testing this locally?

that could be the problem.

OR, some other php setting is not correct
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Stonedfury

  • Jr. Member
  • **
  • Posts: 266
    • Stonedfury
  • Skype Name: Stonedfury
  • VirtueMart Version: 2.0.24
Re: Cart Page Fields & Modifications
« Reply #51 on: April 22, 2013, 22:39:29 pm »
No. lol I am breaking rules and testing on a live site.
No such thing as a stupid question, only a stupid answer. I won't ask if I know the answer or found it using the search as you suggested.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: Cart Page Fields & Modifications
« Reply #52 on: April 22, 2013, 23:40:24 pm »
if it ships today, you dont have to do the date.

Just the delivery date
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Stonedfury

  • Jr. Member
  • **
  • Posts: 266
    • Stonedfury
  • Skype Name: Stonedfury
  • VirtueMart Version: 2.0.24
Re: Cart Page Fields & Modifications
« Reply #53 on: April 22, 2013, 23:50:40 pm »
I just wanted to be fancy. :P I also got the button to display for guest. I only am showing TOS on the cart page so the issue was when a person selected guest there was no TOS checked as per
Code: [Select]
<?php if (((!empty($this->cart->BT))&& ($this->cart->cartData['paymentName'] != 'No payment selected') )&& ($this->cart->tosAccepted))I just removed the check for TOS :) that fixed the button not showing for guest to checkout. Now I need to figure out why the templates button for the cart (the one in template) requires to be clicked 2 times. you finish putting in information all fields filled in > click Place My Order > and it saves "Checkout done, please confirm the order".  I think it should not care and just save and pass the information.
No such thing as a stupid question, only a stupid answer. I won't ask if I know the answer or found it using the search as you suggested.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: Cart Page Fields & Modifications
« Reply #54 on: April 23, 2013, 01:54:48 am »
I just wanted to be fancy. :P I also got the button to display for guest. I only am showing TOS on the cart page so the issue was when a person selected guest there was no TOS checked as per
Code: [Select]
<?php if (((!empty($this->cart->BT))&& ($this->cart->cartData['paymentName'] != 'No payment selected') )&& ($this->cart->tosAccepted))I just removed the check for TOS :) that fixed the button not showing for guest to checkout. Now I need to figure out why the templates button for the cart (the one in template) requires to be clicked 2 times. you finish putting in information all fields filled in > click Place My Order > and it saves "Checkout done, please confirm the order".  I think it should not care and just save and pass the information.

like i said before, IF they click the LINKS for billing, & payment, & if you have shipment.

THEN, when they get back to the cart, they only have to push it once
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Stonedfury

  • Jr. Member
  • **
  • Posts: 266
    • Stonedfury
  • Skype Name: Stonedfury
  • VirtueMart Version: 2.0.24
Re: Cart Page Fields & Modifications
« Reply #55 on: April 23, 2013, 17:23:07 pm »
Pro - on our site it does not seem to work that way and I do believe it is in lue of the TOS. If the TOS is not required then they just click and it is one time done deal. The TOS acts like it has to save and then you can check out. Thats why I want to completely do away with the TOS. Funny part is the TOS is on cart and not edit_address (well it can be shown on address) I need to override the one on cart and set it to true-hidden but as I said about my skills being bleh lately. :( I think if I get that done then I can include your tos check for the button as it would always be true.

Just so I am absolutely clear. Thank you very much sir, very very much. You have been one of the biggest helps to me. You have no idea.
No such thing as a stupid question, only a stupid answer. I won't ask if I know the answer or found it using the search as you suggested.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: Cart Page Fields & Modifications
« Reply #56 on: April 23, 2013, 18:18:21 pm »
Pro - on our site it does not seem to work that way and I do believe it is in lue of the TOS. If the TOS is not required then they just click and it is one time done deal. The TOS acts like it has to save and then you can check out. Thats why I want to completely do away with the TOS. Funny part is the TOS is on cart and not edit_address (well it can be shown on address) I need to override the one on cart and set it to true-hidden but as I said about my skills being bleh lately. :( I think if I get that done then I can include your tos check for the button as it would always be true.

Just so I am absolutely clear. Thank you very much sir, very very much. You have been one of the biggest helps to me. You have no idea.


you just need to <input hidden>

FROM the billing address & then , remove the code on the cart page, thats all I did

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Stonedfury

  • Jr. Member
  • **
  • Posts: 266
    • Stonedfury
  • Skype Name: Stonedfury
  • VirtueMart Version: 2.0.24
Re: Cart Page Fields & Modifications
« Reply #57 on: April 27, 2013, 01:03:43 am »
I solved my problem if I didn't already say so. :) I disabled TOS in the Db, removed the code from the link you provided for TOS and on the page. This makes the page, aside from the forms, a one click deal. I also added a button with text to replace the TOS next to the pay now. This way the customer could not claim they didnt see it. On a phone it is first to be displayed above the button.
No such thing as a stupid question, only a stupid answer. I won't ask if I know the answer or found it using the search as you suggested.

Stonedfury

  • Jr. Member
  • **
  • Posts: 266
    • Stonedfury
  • Skype Name: Stonedfury
  • VirtueMart Version: 2.0.24
Re: Cart Page Fields & Modifications
« Reply #58 on: May 02, 2013, 19:32:05 pm »
I was wondering. Is there any insight on how to load the fields for a user to input their details and save&submit upon checkout. Totally removing the need to separate windows to be loaded. I am aware of OPC extensions but Id rather just modify what I have than hope I get a working OPC. I have seriously made use of the code from you.

Also any inside on how I would make this check to see if the view is category too?
Code: [Select]
<?php if ($this->countModules('main-top') and JRequest::getCmd('view')!=='cart'): ?>. Maybe this?
Code: [Select]
<?php if ($this->countModules('moduleposition') and JRequest::getCmd('view')!=='cart') &&(view)!=='category'?>This code hides my selected modules from being visible on those pages. Currently the dynamic version is not working after clicking the save button on shipper or payment. :(
No such thing as a stupid question, only a stupid answer. I won't ask if I know the answer or found it using the search as you suggested.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: Cart Page Fields & Modifications
« Reply #59 on: May 02, 2013, 22:32:48 pm »
I was wondering. Is there any insight on how to load the fields for a user to input their details and save&submit upon checkout. Totally removing the need to separate windows to be loaded. I am aware of OPC extensions but Id rather just modify what I have than hope I get a working OPC. I have seriously made use of the code from you.

Also any inside on how I would make this check to see if the view is category too?
Code: [Select]
<?php if ($this->countModules('main-top') and JRequest::getCmd('view')!=='cart'): ?>. Maybe this?
Code: [Select]
<?php if ($this->countModules('moduleposition') and JRequest::getCmd('view')!=='cart') &&(view)!=='category'?>This code hides my selected modules from being visible on those pages. Currently the dynamic version is not working after clicking the save button on shipper or payment. :(


http://www.kaizenmediaworks.com/virtuemart-template-and-module-control

http://www.metamodpro.com/metamod/metamod-pro
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)