I have a textbox for every product. An issue that I have noticed is that if a customer adds the product to cart with text in the textbox, then goes back to the product again, the textbox is still...
Type: Posts; User: joecooper
I have a textbox for every product. An issue that I have noticed is that if a customer adds the product to cart with text in the textbox, then goes back to the product again, the textbox is still...
Hi,
I'm not sure if you need interlink to enable access, or if it is already enabled. The username and password for the API is the same as the one you will use to log in to their control panel.
...
The code runs fine and works outside of Zen Cart. The class I am using has exception handling so that errors will display. However, within the Zen Cart environment, these are not displaying, and zen...
I checked the file I edited, the code I have added is directly after "NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL"
I did read up about the notifiers, but unsure where this code should be...
Many thanks. I will look into this.
-- Please delete this duplicated thread --
-- to be deleted --
I have some custom code and a custom class. The class connects to an API and has error handling. This works fine with tests outside ZenCart.
The issue is, ZenCart seems to supress these errors and...
You can do this with most hosts.
If it keeps going back to the login page without any error messages. Close your browser completely and open a new one. This happens to me and I have to that each time.
Some companies will let you use an API which will allow you to display the details in your orders history page which is more complex, but overall a nice feature to have. You will likely need to have...
I did have to edit some files. But only because I wasn't too familiar with the overrides. I will look into this. Thanks.
This was happening from the first install of v153 with just a theme added. I have removed the order number for now, and will rewrite the code to get the correct order number. Not sure why this is...
I have written some code which allows orders to be sent to a certain shipping company ready for the labels to be printed off.
I have currently added the code to the checkout_success page to get...
When someone places an order, they get the order number but minus 1.
So if their order number is actually 100, it would say "99". If they refresh the page, it shows "100" as the correct one.
...
In case someone comes across this post looking for the same thing, I am currently writing a shipping module which connects to the API to insert the shipping details ready to print the labels. I will...
if($orderInfo->field['shipping_method'] == "Express (Interlink DPD)"){ //If the shipping method is DPD.
include("includes\classes\interlink.php");
$apiURL = "https://api.interlinkexpress.com"; ...
Any help would be appreciated. I have added the API code to the order.php page under both the query and send_order_email function, and as far as I can tell, the code doesn't get run in either of...
Thanks,
I started adding the API to the checkout success page, but realised that this may not work if the user doesn't go back to this page for what ever reason.
No, this is for an API. I'm using JSON to send the data across to interlink so that it gets put directly into their system and returns the tracking number to be stored in the database. The tracking...
I am creating (and using some existing) code which will send new orders to Interlink via an API ready for the labels to be printed.
Just cant seem to find the php file where I should put the code...
I have modified that particular attribute to be a hidden field, which is controlled by JQuery and Javascript, depending on which type of monogram has been selected.
Since Zen Cart doesn't support...
Glad to say it was just me being silly. This works fine:
<?php
if (($_GET['action'] == 'add_product')) {
if($_POST['id']['txt_10'] == "Initials"){
unset($_POST['id'][8]);
}else...
It seems like I'm unable to modify the variable.
I posted the question on here:...
Yep managed to do the same with var_dump($_POST['id']); so now I can see the values.
I can then pull the value. but unsure how to modify the value? Although thats more PHP related and I'm sure...
Ok, so I have tested this, but can't seem to get any data about the attributes.
<?php
if (($_GET['action'] == 'add_product')) {
echo("<table>");
foreach ($_POST as $key => $value) {
...
So this will run before any other code is ran? And I'll remove the attrubite information, then the usual "add to cart" option deals with the rest? (with attribute removed). Is this right?
Just a quick one.
I have a main attribute which chooses which sub-attribute to display via JQuery. But since both sub-attributes are drop downs, they still get submitted on their default option. ...
Hi,
Running 1.5 with ZenCart.
Our client has a site which has image handler. Although it has never worked properly, and often is unable upload images.
I am doing some testing today,...
Desperate for a working version of this on 1.5+
Does anyone know what needs to be changed for this to work?
My sister runs a site, but has now gone on holiday for 6 weeks. We need to mark all products as "Out of Stock". Rather than go through all 100+ products, we want to do it at the database level.
...
If anyone is interested in some Freelance work with this one, we will pay.
There are of course shortcuts to go directly to the console, but mine was more consistent across browsers:
...
Well this method will work for at least 93.5% of people, since it works on all common browsers, I think that's a chance worth taking.
Internet Explorer: Press F12 and go to "Console"
Chrome:...
Load the site and press F12, then go to Console. There are a load of errors of missing files. Best to start with them.
Looks like your formatting of the JS is wrong. It's all on one line which is commented out with "//" thus ignoring all of the code.
Broken site:
15341
Working site:
15342
Isn't the cookie notification thing only if your company is based in Europe? doesn't matter if your company is based outside of the EU. As far as I know.
Edit: Just noticed the site is Italian, so...
I have a heavily modified product view which uses two sets of attributes. I use JQuery to hide and show each set depending on which main option they choose.
The issue at the moment is that all...
I've managed to do this for the cart, the order history, and the orders page on the control panel. The email however displays all of the options.
I am using one attribute which selects either...
Thanks,
I am hoping to change the way that attributes are generated for the email. More specifically, only display some attributes if another attribute is selected. I can't see where I would need...
Thank you for the hindsight. This was in January, and the sites been fine since then. Except for that one table.
So what happens now is that with existing customers, their customer address is...
I transferred all the old customers etc, but I missed out the address_book table.
There have been 449 new addresses in the empty table now, but I would like to add the other 5500+ from the old...
I am trying to make changes to the way attributes work. For example, shows two different sets of attributes depending on their first chosen option.
I found the file includes/classes/order.php, but...
I don't have the files packaged up yet. I don't have the time to do this or go through the changes at the moment as we're months over a deadline with a client.
The 1.3 version should work out of...
I know how the original method works, it finds images that starts with the same name in order to add them as additional images. You would think that an image handler would support this, and add a...
Yes I got it to work. What exactly are you having trouble with?
You can use the older 1.3.x module version. Mostly it will be fine, you will need to make some small changes.
Right, I found out what is happening!!
The main image file name is "b.jpg"
So any image that starts with "b" is being added. This seems to be an error with code.
Looking more into it.
Other products main images are being added to random products additional images.
If we remove the additional image from the products, then it also deletes the main images...
Hi,
We've noticed that images uploaded using the image handler are being added as secondary images to other products.
Could it be to do with images having the same file name when they are...
Thanks,
I've gone ahead and removed the option.