Forums / Templates, Stylesheets, Page Layout / removing product info -- go streight to cart

removing product info -- go streight to cart

Locked

Started by mversaggi on 13 Mar 2008, 2:39 PM · Views: 1,031

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
13 Mar 2008, 2:39 PM
#1
mversaggi avatar

mversaggi

New Zenner

Join Date:
Jan 2008
Posts:
2
Plugin Contributions:
0

removing product info -- go streight to cart

Hi all,

What I would like to do is have my downloadable products on the main page with an "Add to cart" underneath. I would like to remove the function at allows them to click on the picture or assoiated text to goto the product information page.

Any ideas?

Thanks

Mark

13 Mar 2008, 2:46 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: removing product info -- go streight to cart

There's a wide variety of configuration options for these ideas in your ADMIN>>>CONFIGURATION menu, (and a couple of other places in your Admin console).

Suggest you play around with these switches / settings to see if there's a combination that suits you.

... also a good way to learn what each setting achieves / influences!

20 years a Zencart User

23 Mar 2008, 10:45 PM
#3
magisbladius avatar

magisbladius

New Zenner

Join Date:
Feb 2008
Posts:
14
Plugin Contributions:
0

Re: removing product info -- go streight to cart

I am in the same predicament, and I have looked everywhere. Could someone post exactly how to make this happen?

23 Mar 2008, 11:32 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: removing product info -- go streight to cart

The listing pages are not built to allow processing attributes (as downloads require), and it will take significant recoding to make this work. It has been done; I think someone posted with a mod for this recently. Search the forum for related keywords.

24 Mar 2008, 2:48 AM
#5
magisbladius avatar

magisbladius

New Zenner

Join Date:
Feb 2008
Posts:
14
Plugin Contributions:
0

Re: removing product info -- go streight to cart

I made it work by editing "/includes/modules/<custom template>/product listing.php." In it I removed all the <a href> links that included the "get_product_info_page" function.

I am also going to try a mod "override_default_content_of_main_page_url_0-1.zip" found under the downloads section, which, supposedly, can set any page to be the main page.

24 Mar 2008, 2:53 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: removing product info -- go streight to cart

If you don't need to allow for processing attributes, that's a whole different (simpler) matter, as you have discovered.

24 Mar 2008, 3:26 AM
#7
magisbladius avatar

magisbladius

New Zenner

Join Date:
Feb 2008
Posts:
14
Plugin Contributions:
0

Re: removing product info -- go streight to cart

If I could, I would; however I will have to make do.

I have one more related question:

How do I make index.php always load "/store/index.php?main_page=products_all?"

Edit: Let me rephrase: I want to change the "index.php" into "index.php?main_page=products_all."

24 Mar 2008, 4:04 AM
#8
magisbladius avatar

magisbladius

New Zenner

Join Date:
Feb 2008
Posts:
14
Plugin Contributions:
0

Re: removing product info -- go streight to cart

Apparently that module was supposed to do the trick, but I have been installing it wrong.

It includes

includes
install.sql
README
uninstall.sql

I have tried the integrated "Install SQL Patches" with uploading the install.sql, but it spits out:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'id=2&chapter=0')', 19)' at line 1
in:
[INSERT INTO zen_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id) VALUES ('Default main page URL', 'DEFAULT_MAIN_PAGE_URL', 'login', 'Set main_page parameter you wish to be default', 19), ('Default main page URL parameters', 'DEFAULT_MAIN_PAGE_URL_PARAMETERS', '', 'Additional parameters for default page (e.g. 'id=2&chapter=0')', 19);]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

The install.sql file reads:

INSERT INTO `configuration` (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id) VALUES
('Default main page URL', 'DEFAULT_MAIN_PAGE_URL', 'login', 'Set main_page parameter you wish to be default', 19),
('Default main page URL parameters', 'DEFAULT_MAIN_PAGE_URL_PARAMETERS', '', 'Additional parameters for default page (e.g. \'id=2&chapter=0\')', 19);

So, the syntax is wrong? How could I fix this?

24 Mar 2008, 4:22 AM
#9
magisbladius avatar

magisbladius

New Zenner

Join Date:
Feb 2008
Posts:
14
Plugin Contributions:
0

Re: removing product info -- go streight to cart

OK--it is almost working. I had to paste all the text from within the install.sql. Now I cannot get the "Default main page URL parameters," which I set set to "main_page=products_all," to work.