-
Posts
359 -
Joined
-
Last visited
-
Days Won
11
Content Type
Profiles
Forums
Gallery
Downloads
Articles
Store
Blogs
Everything posted by Acer
-
Hi I've encountered a bug when trying to move a product to a different category with CSV import. (On TB 1.1.0 on local Xampp dev, worked before on 1.08) In short: On initial import, the product is assigned to the correct category and this category is set as the default category - which is correct. The product breadcrumb is also correct: Coffee and Tea -> Tea -> Test Product 1 Bug occurs when I try to do a re-import and change the default category, to Coffee (cat id 4) for example, then the following happens: Although the product has been moved to the correct category and is listed in the correct category in both the front-end and back-end, The product breadcrumb incorrectly shows the old path and default category instead of the new one The default category has changed to Root and not the correct category (Coffee) If I log in and change the product's default category manually, then the product's breadcrumb changes to the correct category Coffee and Tea -> Coffee -> Test Product 1 From what I recall, this was working in 1.08 where I could re-import the product and move it's category around without any issues. Front-end product breadcrumb would update correctly. Changing the product categories during subsequent imports make no difference and the front-end still displays the old path and default category of the initial 1st import 😞 Only after changing the default category manually does the new category reflect in the front-end product breadcrumb Also, I'm not sure why the Home category is not selected if Root (1) is specified... Images below How do we fix this? Please help! Screenshot steps: CSV for initial category import: 5 (tea / default cat), 3 (Tea and Coffee / Parent Cat), 1 (Root): Correct default category (though Home appears to be unselected): Initial import: Breadcrumbs Correct: CSV to update / change default category to Coffee: 4 (coffee / default cat), 3 (Tea and Coffee / Parent Cat), 1 (Root): Incorrect default category after product import update to change category: If I manually change the default category to Coffee, then the product breadcrumb updates and displays the category correctly: Correct product breadcrumb after changing default category manually: Once again, your help is appreciated in advance. Not sure if I'm doing something wrong?
-
Hi I've reached out to the creator of the Advanced Features Values module (multiple values for a feature), Jérôme Danthinne, to see if he'd like to donate this module to the ThirtyBees project. He has come back to me and said he is willing! 🙂 🙂 His module has great features and is compatible with ThirtyBees! - Initially written for PS 1.5 / 1.6 Please may I ask the ThirtyBees Project Owners to take it from here? Link to module: https://github.com/jdanthinne/advancedfeaturesvalues Link to donation request: https://github.com/jdanthinne/advancedfeaturesvalues/issues/31 Link to thread about Advanced Features Module on Thirty Bees: https://forum.thirtybees.com/topic/3456-multiplefeatures/?tab=comments#comment-30387
-
Hi Datakick Thanks for this, however, this module wasn't enabled in my modules list, so resetting wasn't necessary... But I have enabled it. Also, it's not apparent that this module does anything "special" like do magical jQuery library stuff - as its function seems to be only to display the copyright in the footer? Unless I missed something and selected the wrong module by mistake somehow? If this module is for something greater, should it not be noted in the module and be enabled by default, regardless of theme?
-
Hi Zen Does the module you recommended integrate with the BlockLayered Filter / Search and supports CSV import? During my own search for a Multiple Features module I found another: 'Advanced Features Values' for PS 1.6. Works like a charm and integrates with BlockLayed Filter and works with CSV import + it has great features like re-ordering of the values etc. I was planning to write a small Instructional post in the near future on how to install this in TB and make it work with 1.1.0. I was also going to make a suggestion regarding this. However, people keep requesting this feature, so I guess now is as good a time as any... Also, I'm not sure where the right place is to make a suggestion, to reach out to the TB developers / 'Powers that Be'? So without further ado: Advanced Features Values Module (multiple values for a feature) by Jérôme Danthinne https://github.com/jdanthinne/advancedfeaturesvalues How to install: Extract the package Rename the folder by removing the -master text so it's just "Advancedfeaturesvalues" Place this folder in the TB modules directory Go to TB admin -> Modules -> install Advanced Features Values module Caveats / Troubleshooting: JS / Javascript error on BlockLayered / Filter search (in some TB versions) If you encounter an issue where the block layered throws a js error, simply add the following to: modules\advancedfeaturesvalues\views\js\blocklayered.js var ajaxLoaderOn = 0; CSV Import The module supports CSV import - however, the CSV import keeps on "adding" to the feature values instead of replacing the values Jonny from Panda theme has provided a "fix" for this, where the CSV import would "nuke" the features for the target product and replace it with the values in the CSV This worked for my use-case. https://forum.thirtybees.com/topic/2633-how-to-update-or-replace-a-products-feature-values-using-csv-import/ Block Layered In some cases, you may have to disable and re-enable Block Layered once for the new module to initiate Suggestion for TB to incorporate Advanced Features Values Module for 30Bz: As this feature is lacking in 30Bz, can the TB guys not reach out to this developer and ask to integrate the module into TB then update it accordingly? It seems to work with all the built in themes of 30Bz. This could save a lot of development time and enables TB to have a much sought after feature sooner rather than in the vague future later. If you'd like, I can separate this reply into a separate post? Request to Jérôme Also, I've reached out to Jérôme and asked him if he'd consider donating this module to the ThirtyBees project. For lack of contact info, I've opened up an issue request on the module repository. https://github.com/jdanthinne/advancedfeaturesvalues/issues/31
-
Hi Musicmaster This works, thank you 🙂 Regarding making a Github issue: Not finding instructions on where to do this? (Contribute / making a Github issue) - can you please point me in the right direction? Also, it seems the "Bug report link" from the main TB site to the forum doesn't work https://forum.thirtybees.com/category/10/bug-reports
-
TypeError: $(...).jqzoom is not a function
Acer replied to Guido Buldrighini's question in Technical help
Ok, so this should be fixed in a future update. In the meantime, the "how to fix now" is detailed in this thread: And yes, in case you're wondering: JqZoom is available in ThirtyBees, and does work (just a 'bug' caused it to not work) -
Hi I've been getting a js error on TB 1.1.0 with Product Comparison when trying to remove a product (adding appears to be ok). The loading image appears and "loads forever" and throws the following js error: products-comparison.js:65 Uncaught ReferenceError: baseUri is not defined at HTMLButtonElement.<anonymous> (products-comparison.js:65) at HTMLDocument.dispatch (jquery-1.11.0.min.js:3) at HTMLDocument.r.handle (jquery-1.11.0.min.js:3) Notes: This is on local Xampp dev environment with PHP 7.2. Problem occurred in 1.08 previously as well. Your help is appreciated in advance.
-
Great, thank you. I've updated the file with the latest version of the min file from Jack Moore's Github (although the previous one included in 1.08 also seems to work fine) So this was a bug then? And I was on the right track by replacing the content of "/js/jquery/plugins/jqzoom/jquery.jqzoom.js" with the "jquery.zoom.min.js" file?
-
TypeError: $(...).jqzoom is not a function
Acer replied to Guido Buldrighini's question in Technical help
Hi I'm having a similar problem in 30Bz 1.1.0, though for me it was working in 1.08. Also, note that JqZoom has been part of TB since earlier versions and the toggle to enable JqZoom is still available in version 1.1.0. I've created a new thread for this issue -
Hi On a fresh install of ThirtyBees 1.1.0, using any "built-in" theme: Naira, Community: Enabling JqZoom for product image is throwing an "Uncaught TypeError: $(...).zoom is not a function" error. Notes: The option to enable JqZoom has been available since the earliest version of 30Bz. This was working for me on 1.08 previously using Community The toggle to enable JqZoom is still in 1.1.0 The JqZoom code is still in product.js of the Community theme Also, it seems that both the jqzoom.js and .css files for JqZoom are being loaded (if I do view source) Please help with a fix if possible. Also, it would be great if we could continue to have this feature available in future versions of ThirtyBees. Error detail: product.js:194 Uncaught TypeError: $(...).zoom is not a function at initZoom (product.js:194) at displayImage (product.js:251) at HTMLAnchorElement.<anonymous> (product.js:290) at HTMLDocument.dispatch (jquery-1.11.0.min.js:3) at HTMLDocument.r.handle (jquery-1.11.0.min.js:3) Thanks in advance Update below * Update: So I've managed to get this "working" by replacing the contents of the 1.1.0 zoom file: "js\jquery\plugins\jqzoom\jquery.jqzoom.js" with the contents of a file that was loaded previously: "modules\ctconfiguration\views\js\vendor\jquery.zoom.min.js". And as if by magic, the error disappears and the zoom functionality works again. However, I suspect that this "fix" is grossly incorrect... It seems that "plugins\jqzoom\jquery.jqzoom.js" was also included in 1.08 previously and that "vendor\jquery.zoom.min.js" was loaded in 1.08 but not in 1.1.0 anymore. Somehow by calling "vendor\jquery.zoom.min.js", the zoom functionally works... but if it's left out, it doesn't work - even if "plugins\jqzoom\jquery.jqzoom.js" is loaded... An explanation and fix for this would be greatly appreciated...
-
How to update or replace a Product's Feature Values using CSV Import?
Acer replied to Acer's question in Technical help
And also, for anyone reading this thread: The caveat or note with this solution is that it Nukes / deletes all Features pertaining to this product - and not just the ones that you're updating. This means that you will need to 'replace' all the product's features when doing an update - you can't just do an update on one feature only. So if you have 4 features on a product and only want to update 1, then you will need to remember to include all 4 features, and not just one in the CSV import when doing an update. If you only have one feature, then it will delete the other 3, and only import 1. This entire solution is geared to adding "updating feature values" with CSV Import to this free module (the module enables TB to have features with multiple values). https://github.com/jdanthinne/advancedfeaturesvalues If you're not using this module or do not need to update features with multiple values using CSV Import, then this solution is not necessary, as TB updates feature values (one value per feature) on import without needing to change any code. It's just with "multiple values per feature" that there is a problem. However, if you are using this module and need to update feature values when doing a CSV import, in \controllers\admin\AdminImportController.php file: you need to add the following (the part in bold) just after "if (!$validateOnly && isset($features['features']) && !empty($features['features'])) {" // Features import $features = get_object_vars($product); if (!$validateOnly && isset($features['features']) && !empty($features['features'])) { if ($forceIds || $matchRef) { $product->deleteFeatures(); } This deletes the target product's features and replaces it with what is specified in the CSV. Full credit to @Jonny for the solution to this problem, obviously 🙂 -
How to update or replace a Product's Feature Values using CSV Import?
Acer replied to Acer's question in Technical help
Hi Jonny This is so strange - probably one of those weird formatting issues... I copied the code directly from the file (and not from your example) and added $product->deleteFeatures(); And now it works! (on initial tests anyway) Weird... I appreciate the reply back and solution, thank you. Will let you know if I encounter any issues with this during more thorough tests... (oh and the text editor I'm using is Sublime Text) -
How to update or replace a Product's Feature Values using CSV Import?
Acer replied to Acer's question in Technical help
Hi Jonny I've managed to test this today, and unfortunately it doesn't seem to be working... It gives me a 500 error on the CSV Import page when I try to add: if ($forceIds || $matchRef) { $product->deleteFeatures(); } As per above. In debug mode, it gives me the following error. Irrespective of whether I add curly brackets or not (notice your example did not have curly brackets for the if statement...) If I remove the curlies, it gives me an error on the foreach... -
How to update or replace a Product's Feature Values using CSV Import?
Acer replied to Acer's question in Technical help
Awesome! This helps 🙂 Thanks Jonny 🙂 Will try this later and will let you know. -
How to update or replace a Product's Feature Values using CSV Import?
Acer replied to Acer's question in Technical help
Ok cool, that's great to hear. By the way: The code above, it looks like it will always delete features (unless I'm mistaken). Is there anyway it will only fire if there are features specified in the CSV? -
How to update or replace a Product's Feature Values using CSV Import?
Acer replied to Acer's question in Technical help
Thanks for this... We will be using Panda for our site (all this is part of testing our requirements) - as the "Advancedfeaturesvalues" module overrides several files, I'm a bit concerned if it will work with Panda... As I know you haven't used this module before, do you maybe know of a module that does work with Panda - for "multiple feature values" -- for both layered navigation filter and product display (+ product list and comparison screens)? I can only test this on Panda if TB meets our testing requirements, then we will go ahead with TB and a Panda purchase... which makes testing before then a bit challenging in this case... -
How to update or replace a Product's Feature Values using CSV Import?
Acer replied to Acer's question in Technical help
Hi Jonny This is exactly what I'm looking for - so how do I do this? -
How to update or replace a Product's Feature Values using CSV Import?
Acer replied to Acer's question in Technical help
Hi Thanks for your reply Jonny. I'm using the native CSV import feature. However, I am using a free module to enable "multiple values for a feature" for both the product screen and the layered navigation filter. I suspect this is what's causing the issue... Kinda sucks that TB doesn't support multiple values for a feature yet - to avoid us using 3rd party modules to enable "basic" functionality... I may now be forced to go the paid route for both "feature value update with CSV" as well as "multiple values for a feature for both layered navigation, product page, comparison, product list and csv import". Perhaps you can recommend any good ones? This is the module I've been using to enable multiple values for a feature: https://github.com/jdanthinne/advancedfeaturesvalues -
How to update or replace a Product's Feature Values using CSV Import?
Acer posted a question in Technical help
Hi I've been battling with this one for a bit now. Maybe you guys know the answer? I'm currently testing Product Update with CSV Import, but I'm stuck trying to update or replace the Product's Feature Values. Instead of updating the feature values for this specific product, the system keeps on appending / adding the value to the feature. This is great when you want to have multiple values for a feature (more on this one in another post). However, this is not great when I need to update or replace a product's feature values. For example, I have a feature called "Rental price" and the initial value is "200". If I try to update this to "300", then the values allocated to this product is "200, 300". Is there any way that I can reset all feature values for a specific product with a CSV import? Similar perhaps to "deleting existing images" when doing a product image update? Also, I've tried to do "Custom position", but this does not show up in the filter / layered navigation - which is what I need. Please let me know if there is a solution or some way to do this with CSV import or if there is a good module that allows you to update / replace a product's feature values? Thanks in advance. -
Hi Rubben Thanks for encountering this issue and getting a fix 🙂 I appreciate it, as we are planning to use Panda + Panda Blog + Sitemap.xml - I suspect that I was going to run into the same issue... I haven't yet tested your solution, but I've downloaded and kept it for when I get to this point in development. Thanks, I appreciate it big time actually 🙂
-
It would be helpful if there was information somewhere online that detailed what features the default CSV import functionality has. And if it can do what I need it to do. And if it has bugs or not and if it should even be attempted (there are reports that it has bugs) Asking the forum if it has certain features or not is a legitimate question imo. I will certainly be checking out the actual functionality on a test site. However, it would be helpful if I knew what it can / can't do without having to do trial / error. The time wasted could be spent actually looking for a paid module that fits our requirements.