I'm using Magento ver. 1.6.1.0
I'd like to add 8lbs to each order (packing materials)
Can't find something useful in Google for "additional weight magento"
How to do this? Is there any backend option or any coding solution?
Thanks!
OK, I hard-coded that.
That's NOT the finest solution ever, but at least it works.
NOTICE: We use ONLY FedEx there, so this works ONLY for that.
In app/code/Core/Mage/Usa/Model/Shipping/Carrier/Fedex.php find something like this, line 359:
'Value' => $r->getWeight()
Here's the weight in Lbs. I've added 8 here.
Hope this will help someone.
Do it in your shipping module. This depends on what module you are using, however, you can just add to the total with a single line of code, even edit the system.xml for packing materials weight so you can adjust it. That will be vastly simpler than Ayman's solution, which I think is for a different problem.
Related
I'm trying to make my little app a little more modular. It would be awesome if I could move all of the Three stuff out of the html page, and into its own js file.
Included "import * as THREE from 'three'" at the top of my JS, but couldn't figure out how to avoid "Cannot use import statement outside a module." Went with this: "let THREE= import("../build/three.module.js") " at the top of the module, which didn't give me the same error, but now it doesn't recognize "THREE".
Struggling through a number of different google searches, but haven't found what I'm looking for..
This was interesting: here but I either didn't understand it, or it didn't help me get where I needed to be.
Thoughts? Anything is much appreciated. Thanks.
Ok, looked harder, and found a couple of solutions. Posting links here.
Link 1 - Webpack Solution
Link 2 - Webpack Solution
Both are pretty good tutorials meant for someone going through this for the first time. (Like me.) One or both require payment at some point for the more in-depth topics. But - there are solutions for the problem above that are accessible for free.
Good luck.
I am looking for a low code solution for a Wix website I am creating. I have the website done except for the gamified task. I am looking to present the user with 3 or 4 pictures on the page, and they must make a selection of the available pictures. The selection is either correct or incorrect based on a pre-determined decision, and the click and selection need to be stored and saved in a database. Following correctly choosing the correct or incorrect answer, the user is presented with the next question. I was wondering if anyone had any key terms to look up that are no code/low code solutions to a task like this, or examples that anyone has seen of tasks that have been made in wix/corvid like this. Any help is greatly appreciated.
You will need some code to do this. It shouldn't be too difficult to do, but there's some work involved.
Some of the APIs you'll need to use are
$w.Image.onClick()
wix-data.insert() (or wix-dataset.save())
Good, is there any option to share the stock after creating the multiTienda without losing the stock that we already have ?, I have realized that if I activate this now the stock of all products is set to 0 and I can not do that because I have more than 5000 products. I have thought about modifying something of the programming to solve it, but if there is some way to do it without having to modify the programming, some module or whatever it would be milk. Otherwise, if it ever happened to you, how did you solve it? If it was done with programming, what did you do?
Beforehand
Thank you very much, and go brown ... xD
Yes, export the _PREFIX_stock_available table, and once you've done the sharing, re-import it.
Regards,
all Im trying to add a few letters before the order number in magento, currently they are at default 100000001, 100000002, etc but I'm wanting something like,TD10000001, TD10000002, I've checked out several tutorials that say I need to edit the: Mage_Eav_Model_Entity_Increment_Numeric function but there doesn't seem to be a decent tutorial telling me how to do this.
Any help would be appreciated.
Answered, found an awesome free plugin by MSWebDesign that allows prefixes before the order number exactly what I wanted, hope this helps anyone else.
I want to learn the cs-cart file structure.
I want to make changes to the admin side functionality, can you guide me to where can I read the file structure and the functionality of files.
Any help would be appreciated.
thanks a lot in advance.
Have a look in /skins/your_skin/admin/common_templates to find templates.
If you know what you want to change e.g. last viewed items, do a global search for last_viewed_items.tpl and you'll find it is used in \shop\controllers\admin\tools.php and a number of other places.
You are just going to have to keep digging and if it were me, I would draw some sort of flow chart as I went.
Of course, once you have discovered how it all pieces together you are going to post your results here for others to discover...right?