New Zenner
- Join Date:
- Nov 2012
- Posts:
- 3
- Plugin Contributions:
- 0
Dynamic Price Updater
Could you help me with tis errors please , if i give you ftp pass? Or want you something for that?
Views: 342,345
New Zenner
Could you help me with tis errors please , if i give you ftp pass? Or want you something for that?
New Zenner
Installed and it worked fine first go.
Thank you for an excellent add-on and thank you for continuing development of it.
I do have one question is it possible to have the price be dynamic based on attributes but not based on quantity?
I'd like to have the per unit price be dynamic but the price to remain per unit even when the person changes the Quantity.
I suspect that should be something I could change by editing the code but was curious if there was a way to do it out of the box?
Totally Zenned
I discovered a small bug, on my behalf. :blush:
In the file \includes\classes\dynamic_price_updater.php on line 43 there is
$this->shoppingCart = $_SESSION['cart']();
this should be (as it was originally)
$this->shoppingCart = new shoppingCart();
A new version is now submitted to the downloads section, and waiting to be approved.
Zen Follower
I have been using ZenCart for years and Google has always indexed my product pages with no problem and no real seo efforts on my part, but for some reason now NONE of my product pages or category pages are showing up when I search Google with "site:discountprintingservice.com"...I have been using DPU on my site for a long time but I have to ask can DPU interfere with Google indexing my pages? Or has the code of ZenCart changed with v1.5.1 that would cause Google not to index these pages??? And before any one replies "you need meta tags" I know all about using the Meta Tags and what good titles, keywords, & descriptions are and yes some of my products have them and some don't but previously all pages were getting indexed regardless of whether I defined meta tags or not....:no:
Totally Zenned
GoldBuckle:
I have been using ZenCart for years and Google has always indexed my product pages with no problem and no real seo efforts on my part, but for some reason now NONE of my product pages or category pages are showing up when I search Google with "site:discountprintingservice.com"...I have been using DPU on my site for a long time but I have to ask can DPU interfere with Google indexing my pages? Or has the code of ZenCart changed with v1.5.1 that would cause Google not to index these pages??? And before any one replies "you need meta tags" I know all about using the Meta Tags and what good titles, keywords, & descriptions are and yes some of my products have them and some don't but previously all pages were getting indexed regardless of whether I defined meta tags or not....:no:
I do not think DPU interferes. The majority of changes I made to DPU were to the way files were read and html was generated. So you could say it is still the same module, but rewritten in a new format.
Zen Follower
Hi
The Updater doesn't interfere with Google SE results; its actions are ignored by robots. Unfortunately I can't say what may have caused your problem but I doubt it's the Updater
Good luck
Dan
Zen Follower
Ok I just wanted to be sure...
Zen Follower
Also while I am thinking about it, I love the update to DPU, great work Design75 on the update, and good to see you back on here too Dan....Dan you probably remember this but I had an issue with DPU not working on my site and you helped me fix it and I have a question about it for both you and Design75...
In the file jscript_dynamic_price_updater.php, Dan you had me change line 35 to:
var theURL = 'http://www.discountprintingservice.com/dpu_ajax.php';
I forgot about this when I upgraded last night and the newer version stalled and I remembered it and changed the same file newer version on line 33 to the same and it started working again...my question is why do I have to do this and shouldn't it work as is with out having to add the code specifically with my site?
Is there something about my site or my DIY template that is causing an issue?
Anyway thanks guys!
Zen Follower
Hi John
Thanks :smile:
If I remember right, it was a cross-domain security issue that was preventing the Updater from working. The 'hard-coding' of the URL was a bit of a workaround for your host
I'm not sure what setting caused this
Dan
Zen Follower
Is this issue something I should address with my host?
Zen Follower
Hi John
If all it means is changing a line of code then not at all. It seems more like a good thing than bad (your host appears to be blocking XSS attacks)
Dan
New Zenner
I managed to get a weird bug with DPU v3.0 on ZC 1.5.1.
Installed without issue, configs fine, and functions.
When a product, in any configuration, is "added to cart" for the first time in a session, it's added in duplicate (2 identical items are added, both at the proper cost). Items added after the first item are added are single, and proper cost. However, the displayed price (in product info, dynamicPrice field) is reflective of the current shopping cart total (i.e., even if no product or attributes are selected, the price displayed is the total in-cart. If something is chosen, it updates properly, but adds the price to the total cart price.)
This causes some issues for me, obviously. No error logs are generated, no pop-ups, etc. It appears to work fine other than adding the first product twice and calculating price based on cart total+attribute prices.
Any suggestions? I've uninstalled/re installed, tried version 2 and 3, and read through almost every page in this thread.
Any help would be greatly appreciated.
New Zenner
azzoor:
never mind i figured it out :smile:
Have the same problem. Can you explain how you solved it?
New Zenner
Hi, Got the plugin working straight away on 1.3.8 and love it. Really makes a difference. Once this I did notice is that when teh feature is turned on the "Add this" plugin icons disappear and erappear when you turn the feature off. Any ideas on how to get them to stay?
Zen Follower
Hi corseter
Do you have a link so I can take a quick look?
Dan
New Zenner
Hi Chrome, Don't worry about it. For some reason they came back by themselves. What I do have an issue with is that when you are logged in as a wholesale customer the main product price still displays the retail price until an attribute is changed and the attributes themselves still display the retail price despite doing the correct calculation whosen chosen. EG attribute displays 180 buts adds 100 to the wholesale price.
Zen Follower
Hi
The Updater doesn't know about wholesale prices I'm afraid; it merely makes a request for the selected product/attribute from the Cart object. I'm not sure quite how Zen handles this as it's been a while since I worked with that part of the system. If you don't mind giving me a couple of weeks I'll be working with the Cart (and core Updater code) and I'll have a look into it for you
Cheers
Dan
New Zenner
Hi Chrome,
That would be awesome. Thanks so much.
Totally Zenned
Just wanted to say thanks for a great little plugin!
New Zenner
When my customers are looking at products, after I implemented this mod, I see dpu_ajax.php as the url they are browsing in the who's online part of the admin. How do I fix this?
Fields marked required must be completed.
Tell staff why this post should be reviewed.