News:

Looking for documentation? Take a look on our wiki

Main Menu

Cart Page Fields & Modifications

Started by PRO, August 15, 2012, 15:10:06 PM

Previous topic - Next topic

PRO

#30
if you look in my signature, you can tell.

I do not link to my website from forums

Stonedfury

#31
Now I have a ton of questions. lol That's a vm 2 store?
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


Stonedfury

#33
I love how you have the image swap for the info being put in. Did you fix the submit twice. I placed a bogus order with paypal and cancelled. :( Hope you don't mind. You should easily find my name. :)

Also the shipping estimate date and delivery is great. Is that a plugin or you put that in? I can't even really begin to think of the questions I have lol this is where typing lacks. Ill have to conduct a list or work on figuring some of it out.

you can see the site I work on most pollenranch.com I have tried some of your code and wish I could modify it some. such as
        <?php if (empty($this->cart->BT)){ ?>
<?php echo '<div id="address">We see that you are not logged in. Returning users please login below to continue.<br>New or Guest users - Click <a class="details btn" type="text/html" title="Billing Details" href="../register/editaddresscartBT"><i class="icon-edit"></i> Add/Edit Billing address information</a> to start the checkout process</div>'?>
<?php ?>

As you can see I had to hard code the link in. Could you provide me with the knowledge of how to add that link with the correct way to echo the url in there? I tried changing the        <?php if (empty($this->cart->BT)){ ?>
<?php echo '<div id="address">' JText::_('We see that you are not logged in. Returning users please login below to continue.<br>New or Guest users - Click - <a class="details btn" type="text/html" title="Billing Details" href="' JRoute::_('correct link');'"><i class="icon-edit"></i> Add/Edit Billing address information</a> to start the checkout process.') . '</div>'?>
<?php ?>
among other changes. For started I am not sure of the url which I figure I might be able to find but then there is the fact that I cant get the link to work. It just blanks the cart page. :(

Also how did you get the google checkout to work? I never can find a working component. Not one that actually works that is.
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

You can ignore the crap code. I was being very dense. I see how now and the link in your post.
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

Quote from: Stonedfury on April 20, 2013, 23:56:27 PM
I love how you have the image swap for the info being put in. Did you fix the submit twice.

the ONLY time you get the "submit twice"  is when you click "checkout"

IF, you do the links like I do

-> Billing Address
-> Payment method

The checkout button does not show up on my site UNTIL all details needed to place order are filled in.

Thats where you see "Place order now"

That is the checkout button

IF you look at the code I posted with steps.php

<?php if (empty($this->cart->BT)){ ?><span class="redtext bold left10">!</span> <a class="details bold font14 m4" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT',$this->useXHTML,$this->useSSL) ?>">
      Please Fill Out Your Billing Address
      </a><br/><?php }?>

^^   redtext   makes the !   red

Then the
<?php if (!empty($this->cart->BT)){ ?><img alt="Attention" src="/images/green.png" /> Billing Address Completed<br/><?php }?>

green.png   is a green image of a checkmark

Stonedfury

LOL I figured a big portion of it out. I am sorry if you went and looked as there is code that stops the cart from loading empty added.

Can you answer how you got the shipping days like that with estimates? Also would you, could you please share how you got google chechout/merchant to work? Even if it is easy and I sound stupid. My searches have yielded nothing of use.
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

I have ran into a little snag. If I select check out as guest the button doesn't load for them to confirm purchase.  I noticed on your site you have a link specific for guest. Mine is on one page. Does that matter?
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

Quote from: Stonedfury on April 21, 2013, 02:43:05 AM
LOL I figured a big portion of it out. I am sorry if you went and looked as there is code that stops the cart from loading empty added.

Can you answer how you got the shipping days like that with estimates? Also would you, could you please share how you got google chechout/merchant to work? Even if it is easy and I sound stupid. My searches have yielded nothing of use.

http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions/virtuemart-payment-systems/8045

the shipping days

I star availability as a number

Like 3   the 3 means it takes 3 days to ship.

Then, the availability code, just takes the days to ship & adds 5 business days to it.

Its not exact, it would be the longest time normally. Because it takes 5 days to ship from east coat to west coast.

my checkout as a guest button uses javascript to HIDE the registration fields, that are not required when checking out as a guest

Stonedfury

#39
I wanna be your friend. lol

I am going to get the OSE thats for sure.

My true problem now is that the guest checkout wont show. I turned it off because if they selected checkout as guest it would save the info and go back to the cart and not show the button for finishing. Only if you registered or logged in. The task show complete though. :( Any ideas?
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

Quote from: Stonedfury on April 21, 2013, 20:05:14 PM
I wanna be your friend. lol

I am going to get the OSE thats for sure.

My true problem now is that the guest checkout wont show. I turned it off because if they selected checkout as guest it would save the info and go back to the cart and not show the button for finishing. Only if you registered or logged in. The task show complete though. :( Any ideas?

are you using a template override?

Stonedfury

#41
Yes. VP_Promart (of course with lots of modifications I think at this point)

Oh yeah. I took the code out that reloaded the cart if it was empty. I am not sure I like how it redirects as the link isn't dynamic.

I am going to google the php code to take todays date and add 3 days to it so I can simulate your shipping guestimate.
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



<?php
$daystoship= $this->product->product_availability;
$daystodelivery= $daystoship + 5;
$ship_date = date('md', strtotime(" + $daystoship Weekdays"));
$estimated_ship_date= $ship_date;
$delivery_date = date('md', strtotime("+ $daystodelivery Weekdays"));
$mo = substr($estimated_ship_date, 0, 2);
$da = substr($estimated_ship_date, 2, 2);
$dmo = substr($delivery_date, 0, 2);
$dda = substr($delivery_date, 2, 2);
$est = $mo . "/" . $da;
$estd = $dmo . "/" . $dda;
?>


<?php echo $est; ?>
<?php echo $estd; ?>

$est     is estimated ship
$estd   is estimated days to delivery



Stonedfury

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. :)
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

How strange that it is not getting today's date for the ship date. I changed it and I didn't see that it affected the date. Ideas?
                        <?php
                        $daystoship
== 1;
$daystodelivery$daystoship 3;
$ship_date date('md'strtotime(" + $daystoship Weekdays"));
$estimated_ship_date$ship_date;
$delivery_date date('md'strtotime("+ $daystodelivery Weekdays"));
$mo substr($estimated_ship_date02);
$da substr($estimated_ship_date22);
$dmo substr($delivery_date02);
$dda substr($delivery_date22);
$est $mo "/" $da;
$estd $dmo "/" $dda;

?>

<p align="center">Ship Date<br/><?php echo $est?></p>
<p align="center">Est Arrival Date<br/><?php echo $estd?></p>
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.