| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Egoods: Multiple downloadable files for each product. | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Egoods: Multiple downloadable files for each product.
Hi all.
I'm new to x-cart and I am using x-cart pro 3.5.3 to create a digital product shopping site. I needed to be able to attach multiple files for each product instead of being limited to the one 'distribution' file. I have finished modifying the php and tpl files to do it and I was wondering if I can share it in this forum. I read a message in another section of the forums asking about such a feature, but I guess I'm supposed to post it in this category. What parts of the code should I post so that it's not too confusing. I am using the 'pro' version, so I think the line numbers are a little different than for the 'gold' version. Best regards, Steve Castle |
|||||||
#2
|
|||||||||
|
|||||||||
Steve,
That's great that you are willing to share your hard work. Perhpas browse through some of the other mods posted here to get a feel for how you want to present your work. I look forward to checking it out! |
|||||||||
#3
|
|||||||||
|
|||||||||
as long as you add comment tags to your code and state which version is done for then all should be good
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#4
|
|||||||
|
|||||||
Greetings all!
Here is the code changes and additions to add the ability to have up to six distribution files per product. You can of course change the code to add more if you want, but six was the right amount for my needs. This is a modification of X-Cart Pro 3.5.3 I am new to mysql and php, so I don't know if I made a mistake with the first line to rename the 'distribution' column to 'distribution1'. I made the changes to the 'xcart_products' table by hand using myPHPadmin, so I didn't actually use the code below to alter the table. Some of the changes I listed below require you to search and replace the variable and column names in the files. I didn't list the code for those files because they just required a simple search and replace. Please let me know if you need any more details on the mod. This is my first mod, so it's a little sloppy. SQL stuff: Code:
------------------- customer/cart.php ------------------- Code:
--------------------- customer/download.php --------------------- Code:
-------------------------- include/product_modify.php -------------------------- Code:
include/func.php ---------------- Code:
---------------------------- modules/egoods/send_keys.php ---------------------------- Code:
---------------------------------- skin1/admin/main/product_links.tpl ---------------------------------- Code:
------------------------------- skin1/customer/main/buy_now.tpl ------------------------------- Code:
---------------------------- skin1/customer/main/cart.tpl ---------------------------- Code:
------------------------------- skin1/customer/main/product.tpl ------------------------------- Code:
------------------------------- skin1/modules/egoods/egoods.tpl ------------------------------- Code:
I also removed code from the email templates for sending the download keys. ----------------------------------- skin1/mail/egoods_download_keys.tpl ----------------------------------- Code:
(You don't have to remove this, but I didn't want to list the filenames in the email, just in case the provider needs to add a file to the product he may have forgotten to add.) ---------------------------------------- skin1/mail/html/egoods_download_keys.tpl ---------------------------------------- Code:
Please let me know if there is anything that I may have missed. I have run lots of tests on it and it works so far. Best regards, Steve Castle |
|||||||
#5
|
|||||||||
|
|||||||||
thanks for the MOD I will try it soon.
__________________
Web Design Web Design and Custom X-Cart Projects http://www.dataviking.com Mention the forums for discounts! x-cart Version 4.1.8 |
|||||||||
#6
|
|||||||
|
|||||||
ANyway customer/download.php can be modified for v.4.0.?
I have version 4.0.0 and I trying to modify this script for multiple esd files. Can anyone help?
Quote:
__________________
all the king\'s men |
|||||||
#7
|
|||||||
|
|||||||
any updates?
|
|||||||
#8
|
|||||||
|
|||||||
anyone with insight on altering this for Pro 4.0.*
__________________
X-Cart Pro 4.0.19; Unix Other: XAOM XOffers XGift Reg Other Mods: Customers Who Also Bought, Download Link Regenerate, Easy Checkout, Newest Products, SEO/CDSEO, Marketing Manager Pro, View Wishlist for Providers (custom by xcart), Email New Releases (a fav!), Telefirma's Dynamic Image Generator, Download Links on Invoice |
|||||||
#9
|
|||||||||
|
|||||||||
I had this mod done by X-cart. They charged $125, but it has paid for itself already. It seemed pretty complicated. It took a couple of weeks of testing and tweaking for it to work correctly. They changed a lot of things to get it to work. Maybe that is why it is not standard, when it seems it should be. Why have variants if there is only one product to download?
|
|||||||||
#10
|
|||||||
|
|||||||
ahhhh thanks for letting me know
__________________
X-Cart Pro 4.0.19; Unix Other: XAOM XOffers XGift Reg Other Mods: Customers Who Also Bought, Download Link Regenerate, Easy Checkout, Newest Products, SEO/CDSEO, Marketing Manager Pro, View Wishlist for Providers (custom by xcart), Email New Releases (a fav!), Telefirma's Dynamic Image Generator, Download Links on Invoice |
|||||||
|
|||
X-Cart forums © 2001-2020
|