-
Posts
17,340 -
Joined
-
Last visited
-
Days Won
824
Posts posted by burt
-
-
I completely forgot to give you the PROTO-code I used.
PROTO-code is code that is made to test a concept and should not be used in a production environment, but it might give you ideas...<script> $('select').change(function() { a = $(this).find('option:selected').attr('value'); img = (a) ? "images/<?php echo $product_info['products_id']; ?>_" + a + ".jpg" : "images/<?php echo $product_info['products_image']; ?>"; $('.pi-gallery img:first').attr('src', img); }); </script>
-
On 6/6/2020 at 11:18 PM, LeeFoster said:
My current range of products only have one attribute, I'll address multiple attributes when it comes up unless @burt
has an idea?Too difficult to handle in the current system of options/attributes.
On the to-do list is a remake of the options/attributes area from the bottom up, but I cannot say when or even if it will ever be done.If what you have made works for you as is; and well done.
When you swap out the image, what image shows in the modal gallery popup? The original or the new?
If you had 3 options each with 3 attributes, you would have to create 27 images, the way that you are thinking this system.
It's inflexible, though it would be easily doable, assuming shopowner had time to make and name images appropriately. -
Hard coded.
20 minutes ago, LeeFoster said:Is this hard coded or hooked?
Hook advice: make a product_info hook utilising the injectBodyEnd listener.
-
-
You're not struggling. You have workable code and you probably (hopefully) learned some javascript tricks.
-
Nice to see you guys having a go, rather than just talking and more talking 👍
When you get it to a "happy" conclusion, I'll post what I coded yesterday (PROTO code, not really tested etc).
-
That's from 10 years ago and seems similar to what you need.
I imagine (well I *know*) that 10 years ago was the time of 500 lines of core code change to do something that can now be done in none.
Even so, I think you'll struggle with a no core change, as the product_attribute page will need to be changed to allow you to assign image to attribute.
Option = Color
Attributes = blue/pink/red (each of these needs an image)That is your first task before you start thinking about actual swapping of images.
-
-
You might like to link to the addon so that anyone else who is using the same can help you.
-
9 hours ago, Patty said:
I hope someone tackles it soon
That "someone" would be YOU. If actual coding is too complicated for you, then you get it done by a competent coder and release it as an update.
Don't rely on someone else all the time - be proactive yourself.
-
17 minutes ago, LeeFoster said:
OK, I've found the cause of the issue, @burt's supporters code #27 Ajax Buy Buttons overrides the functions of the Add to Wish List button. Turning off this Header Tags module fixes the Add to Wish List addon but obviously removes the function added by this.
This wishlist mod is coded in a way that is inconsistent with the rest of Phoenix.
A null link button in a form SUBMITs the form...that is the root cause.
Give the wishlist button a href that links to the wishlist action.
-
-
Just now, Bordersbloke said:
No I'm using Paypal IPN and Paypal WPP Hosted IPN.
However Paypal Standard (which I do not use but have added to test) is also failing as others describe.
I cannot use the app as the WPP version is not compatible with pre-2009 WPP accounts.Have you updated the CRT ?
In 2.3.4 that is at /ext/modules/payment/paypal/paypal.com.crt -
1 hour ago, hungryfrank said:
This module opens a modal instead of login.php whenever use clicks the link
Upload and install the footer_suffix module
Thanks a million to JcMagpie for all. The help or it would not be possible
https://apps.oscommerce.com/rDkyf&modal-login
tested one4&5
Just to let potential users know that although my name is linked to these addons, they are nothing to do with me.
OP refuses to engage in meaningful and polite conversation regarding removal of my name from these addons. -
27 minutes ago, azpro said:
Sorry .. but that is crap. Just read carefully the comments of John - Matt and Gary. If you and others in general can not keep up (dont have the skills) with changes than stick to quite stable 1.0.5.0 ... But for every simple notice moaning about stable is not going to bring us where we want to be.
I am very sorry if I am blunt but I don’t know how to put it nicely.
Dutch people - they speak plainly and bluntly, and by god, I love them for it.
-
Never used this addon, so cannot comment in any meaningful way.
Does the addon call on its own class file ?
-
Try it? STORE_COUNTRY is always set. So you would replace the whole block of shonky code with that 1 liner.
-
// DOES SHIPPING_ORIGIN_COUNTRY exist if (defined("SHIPPING_ORIGIN_COUNTRY")) { // IF YES if ((int)SHIPPING_ORIGIN_COUNTRY > 0) { // SET SHIPPING_ORIGIN_COUNTRY to an integer (number). // THis will always be "0" if SHIPPING_ORIGIN_COUNTRY IS set BUT is not an integer $countries_array = tep_get_countries((int)SHIPPING_ORIGIN_COUNTRY, true); $this->country = $countries_array['countries_iso_code_2']; //// note 1 - is an INT if(!strlen($this->country) > 0) { //when country failed to be retrieved, likely because running from admin. $this->country = $this->country_iso('', (int)SHIPPING_ORIGIN_COUNTRY); } } else { $this->country = SHIPPING_ORIGIN_COUNTRY; //// note 2 - is not an INT } } else { // IF NO // this will never be set to anything $this->country = STORE_ORIGIN_COUNTRY; ///// note 3 - is unset }
SO:Note 1:
define('SHIPPING_ORIGIN_COUNTRY', 223);
$this->country = 'US'; // most likely (assuming 223 is the US in your database)Note 2:
define('SHIPPING_ORIGIN_COUNTRY', 'US');
$this->country = 'US';Note 3:
and if SHIPPING_ORIGIN_COUNTRY is not defined at all;
$this->country IS NOT SET and will likely error out; -
Upgrade to the Paypal App;
https://apps.oscommerce.com/fZMiN&paypal-app
This app is written specifically for 2.3.4 shops.
-
@saxcbr please put in a ticket to Paypal.
-
@Cary did you get a ticket into Paypal.
The more replies back from them, the easier it is to get a fix.
-
-
-
3 minutes ago, valquiria23 said:
generate positive attitudes. Never mind
That is a two-way street. As you say, never mind.
Wishlist For Phoenix
in General Add-Ons Support
Posted
global $cart
in the relevant navbar module.
That may lead to other problems or it may fix it.