Forums / General Questions / Reference new page in url address

Reference new page in url address

Locked

Views: 1,501

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
18 Oct 2009, 10:20 AM
#1
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Reference new page in url address

I'm eager to find out how to make a page that I created referenced in the URL. For example zen already has http://www.site_address.com/index.php?main_page=site_map or http://www.site_address.com/index.php?main_page=send_gv. Say I have a page that I want to be referenced in the url address bar as http://www.site_address.com/index.php?main_page=buy_gv

What would I have to modify??

_thanks

19 Oct 2009, 3:10 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Reference new page in url address

Download the "About Us" addon. It is an example of a new "page" being added to the store. Customize it as needed.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Oct 2009, 8:04 PM
#3
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Reference new page in url address

I will certainly try this and let you know how I got on..

_thanks very much Dr

19 Oct 2009, 8:45 PM
#4
perlgerl avatar

perlgerl

New Zenner

Join Date:
Nov 2008
Posts:
9
Plugin Contributions:
0

Re: Reference new page in url address

I'm assuming you want to create a new page and have Zen Cart automatically include it in the navigation. Two other options are:

  1. Use the built-in defined pages. Go to Admin > Tools > Define Pages Editor > defined_page_2.php etc.

  2. Use EZ Pages (I can't remember if this is built in or is an add-on!). If you've got it you'll find it under Admin > Tools > EZ Pages > New File.

21 Oct 2009, 2:33 PM
#5
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Reference new page in url address

.. ok so I have installed the add on - it seems to be exactly what I need. I am having a few problems though - let me explain...

I wish to use the page just like the product_info page but for a specific product - how could I achieve this so that the information is processed and sent to the shopping cart just like for the product_info page?

_thanks

21 Oct 2009, 3:29 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Reference new page in url address

You can't.

Sounds like you're really wanting a separate product type instead.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Oct 2009, 4:43 PM
#7
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Reference new page in url address

I believe that all things are possible. Maybe I couldn't right now but I know that you could..

Yes the separate product is a GV - doesn't seem right selling it like a normal product..

_thanks for the help as ever

21 Oct 2009, 7:22 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Reference new page in url address

g_force:

Yes the separate product is a GV - doesn't seem right selling it like a normal product..
Why not? It's still something you have to add-to-cart, and complete payment with.
There's already full built-in support for handling purchase of GVs as regular products if you simply follow the instructions. There's no need for a separate URL or separate product type for GVs.
https://www.zen-cart.com/tutorials/index.php?article=64

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Oct 2009, 9:07 PM
#9
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Reference new page in url address

Why not? It's still something you have to add-to-cart, and complete payment with.

That's true the process is the same but the surroundings should differentiate the experience >> take betfair for example - placing a bet is completely different from depositing .. which is what GVs are essentially .. anyway thanks for the advice as always_

21 Oct 2009, 9:14 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Reference new page in url address

If you want the pages to look different, you can certainly build your own product-type to suit your needs.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.