The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Categories linking with database : how to do?
Author Message
Reply with quote
Post Categories linking with database : how to do? 
Hi,

For my testshop i have to design decent buttons or something else( in Fireworks) for the categories to link to the database

(i do positioning the categories links about the same position as on the testsite) see http://www.janzerospec.com/shoppingcart/agora.cgi
How to do this?

doumawis Smile

View user's profile Send private message Send e-mail
Reply with quote
Post  
hell-o
if you want a simple button with plain text over it and use font tags or css to control the text then look at this hack...
http://www.cartsolutions.net/public/autolink.txt
just repace the css calss or the font values with what you need. for default image location just upload your button image to the store/html/images folder.
regards,
dan

Reply with quote
Post  
Thanks!

Well i added a category menu see http://www.janzerospec.com/shoppingcart/agora.cgi

now i have to link this buttons .....

Doumawis Smile

View user's profile Send private message Send e-mail
Reply with quote
Post RE: Categories linking with database : how to do? 
hell-o
cool. to link to the categories within the store use this:

<a href="agora.cgi?cart_id=&product=Wheels&xm=on">image</a>

outside of the store:
<a href="store/agora.cgi?product=Wheels&xm=on">image</a>

notice i dropped the cart_id stuff.

for your webstyle links you'll have to open the js file and edit the links or create a new set.

you can also use the two blank images and css to do all of your button images and rollovers without js. this method is really fast and xbrowser com0liant with all modern browsers. an added benegit is no preload necessary. it only take 2 images for the entire nav bar. 1 or 1000 links only two images.


regards,
dan

Reply with quote
Post Re: RE: Categories linking with database : how to do? 
Thanks!
amazing knowledge of this subject

I produced the following page url: in my first attempt to connect teh category "Wheels" button with the instore productdatabase

http://www.janzerospec.com/images/imagesextra/categmenu/_a%20href=_agora.cgi_cart_id=&product=Wheels&xm=on__image_/a_

( with te existing working 'wheels" link a got this url :
http://www.janzerospec.com/shoppingcart/agora.cgi?cart_id=5388789.31594*Ae0ea0&product=Wheels )


as a expert you can see what i did wrong ( i have to think about the anchor <a .... /a> format for the button wheels)

Quote:
notice i dropped the cart_id stuff.


not really=> what means the cart_id stuff ( i don't not yet got the whole picture of this)=> yes i see it now th difference:
<a href="agora.cgi?cart_id=&product=Wheels&xm=on">image</a>
<a href="store/agora.cgi?product=Wheels&xm=on">image</a>

Well i can consider this categorie menu as linking within the store ( not outside)
doumawis Smile

View user's profile Send private message Send e-mail
Reply with quote
Post Re: RE: Categories linking with database : how to do? 
little problematic

There is a the default Agora product category links on the panel and i added a new productcaregory menu

Is it possible to connect 2 buttons for the category Wheels?
( it is handy for testing possiblities)

Think.... well i got connect a inside category and a outside catergory for wheels ( there linking methods differ: so no problem)

with 2 buttons for th same category they differ in button: but in linking?
Well why not 2 differnent buttons for the same category( you use them noth both on teh same time)

doumawis Smile

View user's profile Send private message Send e-mail
Reply with quote
Post Re: RE: Categories linking with database : how to do? 
Well i don't know yet how to connect tte Wheels button the productcategory wheels ( the url fomat for the javascript button for the database category wheels differ from a regular url )

I did make a comparison yet between normal static url or dynamic url

It brings me on a another question: i downloaded for the storemanager a add- on to bring in categories on the silver panel

I think a can forget this utility and i must be capable to add a category without using this add-on?

it brings me on the question : what is the normal procedure to add a category to teeh database ( i don,t want to add links on the silver plate)

Or should i use this add-on?

doumawis Smile

View user's profile Send private message Send e-mail
Reply with quote
Post RE: Categories linking with database : how to do? 
hell-o
it's been a while since i used webstyle. but if i remember correctly when you create the button you can define the link. so when you define the link put in the agora.cgi stuff not the path to the product page or an html.
go back to webstyle and create one button for testing the nave bar. define the link to the wheels category as outlined above then publish it on a test page. it should work just fine. when you have all the buttons linking to the categories correctly then remove the agorascript that created the links above your nav bar.
regards,
dan

Reply with quote
Post Re: RE: Categories linking with database : how to do? 
Yes , ofcourse when the new buttons 100% working than remove the agorascript ( i had that already considered)
( the current homepage is a testpage)
http://www.janzerospec.com/shoppingcart/agora.cgi

The problem is now what is the correct " link format" for the webstyle button that's where it all abouts : i must created a path to the wheels category ( i tried several formats)

How about your advised url ?
- i already figured out the path to a HTML( (here whitin) or outside shop)
- but not for a product(page) ( within or outside shop )
- but not for a category ( within or outside shop)

What else more?

Doumawis Smile

doumawis Smile

View user's profile Send private message Send e-mail
Reply with quote
Post  
hell-o
make a new button or edit the current wheels button. use this as the link when creating the button:

agora.cgi?cart_id=&product=Wheels&xm=on

i think that should work through the interface. you can also open the js file in notpad, find the link to the wheels category and edit it by hands.
regards,
dan

Reply with quote
Post  
this is the result of the Wheels button :
http://www.janzerospec.com/images/imagesextra/categmenu/agora.cgi_cart_id=&product=Wheels&xm=on

this is teh existing Wheels link: http://www.janzerospec.com/shoppingcart/agora.cgi?cart_id=5388789.31594*-P8675&product=Wheels

i go further

doumawis Smile

( it is wintertime here in Holland : 30 cm snow in March: very rare: once in the 50 year statistical ) but fun!
Next week is all snow ( and Happy Christmas) gone and western ocean winds coming ( as normal)

View user's profile Send private message Send e-mail
Reply with quote
Post  
It is unbelievable: the whole afernoon try to get a correct link!
Problem is also i don"t know exactly how the url must linked in the down ( 2 state button) or up position ( it was also for me a while ago voor using webstyle)

Doumawis Smile

View user's profile Send private message Send e-mail
Reply with quote
Post webstyle 
hell-o
ok i just ran a button with webstyle.
here's what you do...
create your button text and size and other stuff. when done click on "menus". highlight the button you want to add the url to. click on the url box for the button. type in
agora.cgi?cart_id=&product=Wheels&xm=on
now click on save and save some place where you can extract the script and other stuff. now add it to an html file and upload the stuff to your store/html folder. make sure your js and images are in the proper path. now access your test page like this:
http://www.domain.com/store/agora.cgi?cartlink=test.
now find the link you made for Wheels and click it.
regards,
dan

Reply with quote
Post Re: webstyle 
Well i find the solution: in webstyle i know that when i add a link in this format : http://www.yourname.com/ ... it must be correct working

So i added this format url in webstyle : http://www.yourname.com/store/agora.cgi?cart_id=%%cart_id%%&product=YOURGIVENCATEGORYNAME

Now it is working 100 % ( as i can see) http://www.janzerospec.com/shoppingcart/agora.cgi

I want also study your given solution( what are you doing here?) ...so what is your testing procedure?
I try to understand this:
- make a testbutton with a link to Wheels category in webstyle on a static HTML page (name: test.htm) and put in html folder
- call
?????

Doumawis Smile

View user's profile Send private message Send e-mail
Reply with quote
Post  
hell-o
not quite right. look at your status bar in your browser as you mouse over the links you'll see this:
%Ert_id%%

also this appears in the address bar after clicking on a category...
http://www.janzerospec.com/shoppingcart/agora.cgi?cart_id=%%cart_id%%&product=Wheels

the cart id is not getting subsituted by the token. i'm not sure this can be done with remote js file as it's coded right now. you can just drop the cart id stuff. but then you would have two strike against ya. one js navigation and two the lack of the ability to pass the cart id through page transitions. this is possibly adding up to be a not so good approach to navigation.
tell you what. if you can send me the two blank nav buttons the height and width you need i'll set you up with agorascript/css and you wont have to mess with them any more Cool
i need the plain button and the rollover. they should match in heght and width.

regards,
dan

regards,
dan

Reply with quote
Post  
Thanks!

Oke: handmade javascript buttons ! : but how about these from webstyle with this look ( suppose i do want use these one ( and a lot of others from webstyle)?

Ofcourse i must be 100% gone work the nav buttons that is the main condition

But the setup layout for the shopis going chancing to a final layout:

- so those webstyle buttons gone be linked now with to a HTML page ( THEY ARE NOT GONE BE ANYMORE CONNECTED TO THE DATABASE)


The sitestructure is as follows now:( shopping by customers can than be done on 2 ways=> it must be improved in my shop , because on the example site this is confusing)

- (1) (starting !)on Home page, than it is possible for customers via the jumpmenu to choose on the mainpage a car + type => the customer get a mainpage with productgroups( in red: choose a category( or better: choose a productgroup) from the concerning car( these groups are the same on the silverpanel).
Select a productgroup( =categrory): than a choosen product from the database is called and showed up in teh mainscreen

-(2) Oke , shopping via methode 1 via the homescreen brings up a mainpage with productsgroups on it, if you only use the jumpmenu on teh mainscreen
Shopping via method 2 is that the customer use the navigationbuttons on the silverpanel by starting up via the homescreen with the productgroups(=catgeories): these buttons are now linked with HTML pages ( intakes_main , bodystyling_main, ....and so on)
( so the buttons are no longer connected to the database anymore)


Look at the example site to get a idea of this all : http://www.k-motorsports.com/index.html

A tremendous benefit ( and luck: but in America there must be a lot of online shop like this one?) to have this site as example

A improvement for my site is that the customer easy get the notion that there are 2 ways shopping ( on the K motorsport site i found this confusing)
HOW TO IMPROVE THIS?

I am still interested to make my own js button: but don't understand what you need from me?

doumawis
Smile

View user's profile Send private message Send e-mail
Reply with quote
Post  
Dan wrote:
hell-o
not quite right. look at your status bar in your browser as you mouse over the links you'll see this:
%Ert_id%%

also this appears in the address bar after clicking on a category...
http://www.janzerospec.com/shoppingcart/agora.cgi?cart_id=%%cart_id%%&product=Wheels

the cart id is not getting subsituted by the token. i'm not sure this can be done with remote js file as it's coded right now. you can just drop the cart id stuff. but then you would have two strike against ya. one js navigation and two the lack of the ability to pass the cart id through page transitions. this is possibly adding up to be a not so good approach to navigation.
tell you what. if you can send me the two blank nav buttons the height and width you need i'll set you up with agorascript/css and you wont have to mess with them any more Cool
i need the plain button and the rollover. they should match in heght and width.

regards,
dan

regards,
dan



Yes: i know probably the cause of this wrong urlformat: it has to do with Dreamweaver

When i made some new pages in html/page directory

the url structure is this :

i got the same wrong piece: %Ert_id%% in this adress: it must be :
%%cart_id%%=> be careful to construcxt this link in dreaweaver and check the format

As test i wil connect the nav bar button air intakes with the category page airintakes: look at my website http://www.janzerospec.com/shoppingcart/agora.cgi
if this produce the right url format
If have to figure this out : so it is maybe not necessary to program code (js and agorascript)with the webstyle js script to : it is a question of correct linking procedure in DW( dreamweaver)!
database pages : http://www.yourname.com/store/agora.cgi?cart_id=%%cart_id%%&product=java

Be careful with linking in Dreamweaver : this red piece of code went wrong ( there is also a jumpmenu in dreamweaver with links)
doumawis Smile

View user's profile Send private message Send e-mail
Reply with quote
Post  
Unfortanely i did the good job for the url linking to the categorys in teh database : the url has the right format as i checked this, so.... Dan has right (ofcourse an old issue!) it must be special coded
I am interested to lear n this , but first i must set up the shop
doumawis Smile

View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum