I am having an issue when someone comes back after the PayPal information is inputted my code runs on the next page but does not execute everything.
Type: Posts; User: Famine_1
I am having an issue when someone comes back after the PayPal information is inputted my code runs on the next page but does not execute everything.
What I said in the title, so far I have something along the lines of this but for convenience, I have been working in the "includes/classes/shopping_cart.php"
but I can't seem to find out how to...
Renaming the class to ot_delivery worked!
Both the language file and the order total module are named ot_delivery.php.
Is anyone able to help with this?
Okay So far I have this:
<?php
class delivery extends base
{
public function __construct ()
{
Everything else has worked so far, but I would like to test for an attribute on these products then if that attribute is selected add a price to the value and this price has to be one price, not an...
Yes, I am asking how/where I would make this.
So I need to test for products in the shopping cart that have a daytime buying parameter? So, I need to add a time limit during the day for some products so that they cannot buy those products after...
Let me rephrase this. Can I create a local delivery only option for some products that end up in the shopping cart? I know I would have to make a "shipping module" for this to work. Can I test for...
How do I create a shipping module to only work with some products, or is this already a feature I could use?
These products need to be for delivery while the other products are not. This delivery...
That worked!
I have also tried
$order->info->comments
and
$order['info']['comments']
I am having trouble pulling the comments though.. I have tried:
$order->info['comments']
But it does not work..
Thank you! This worked, I got the first stuff but could not figure out the showing of the products.
This is the code I have so far and it sends the email but it sends two if two products are bought at the same time, so I just need it to send all in one email.
There has to be a way to wait for the...
Currently, we have everything working including sending the emails per product ordered. But what we need to get working is to have the case test send all info through one email instead of multiple.
...
I am trying to email the attributes when a product is bought.
// Attributes
$product['attributes']['option'] .
"\n" .
...
I have tried these but they do not pull the attributes.
I have gotten everything else I need to work work. But I can't get the attributes to pull I have tried the following.
$product->attributes['option']
$product->attribute['option']
...
We have a restaurant that sells food and we need to handle his food order that comes in, we need to put a time frame on those items so those items can only be ordered at certain times. Then we need...
I have been trying to pull the product id inside of the order.php file here is what I have so far but it does not seem to work.
if ($this->products['id'] == 1) {
// do something
}
...
The $order->customer['firstname'] adn $order->customer['lastname'] do not display the first and last names in the email.
Here is the current code I have tried to get working. But I cant seem to figure out how to make it work.
protected function processProducts($products)
{
foreach ($products as...
Are you saying I can still use the $email_order variable in this file to send the same email? Or do I have to call the $order var before it?
Turns out I am still a bit confused.. Here is a function I want to run a copy of the admin email in this file, how can I achieve this because when the email fires it only gives the info defined in...
This should work for what I need to do. I should be able to do what I need to from here thanks for the help!
I will look into trying to create an observer for what I need to do, that might be the best option for what I am doing. Thank you!
I'm looking to do this when the order is placed at about the same time the order.php file is run. But I have no idea where to put my own code so that it 1. does not conflict with the existing code 2....
Hello, I would like to make it so when an order is placed from a specific product it does something Zencart cant.
What file/file folder should I put this file in so when a product is purchased it...
Is it that hard to send emails when only certain products are sold? Does zen cart not already have things defined for products so I could use those definitions to send emails when there sold?
I need to send emails to my clients when their product is sold but I do not want to give them access to the admin, so how can I change the code to send to multiple people emails when products are...
I need to send an email per product/category on my site so people without admin access I can send an email for product sales too.
As well as that I need to send print receipts to a printer when...
Okay... But how do I make this?
I have searched this website but could not find a good solution so far from the already posted topics.
I have been trying to get Zen cart to perform in the manner of being able to take orders for...