Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Could be useful to many. Need help correcting

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 01-05-2011, 10:43 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Could be useful to many. Need help correcting

They probably used a pull down form because they wanted to save space and did not like the xcart default template that shows a group of manufacturers, then a link to a page with all the manufacturers.

You can open up webmaster mode and take a look at the smarty variables, it could provide clues and tell you when you are referring to variables incorrectly. You can also look at the resulting source (html) code and get clues as to why your form submission is not working.

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #12  
Old 01-05-2011, 02:48 PM
 
Anty Anty is offline
 

Advanced Member
  
Join Date: Aug 2009
Posts: 40
 

Default Re: Could be useful to many. Need help correcting

Exactly gb2world, thats why we used the pull down form.The problem I have now is to get the links working in the menu. I would like to use webmaster mode although I'm not an expert coder and would prefer not to (might mess things up).Any advice on how to fix my problem with links.

Thanks
__________________
v4.2.2
Reply With Quote
  #13  
Old 01-05-2011, 08:40 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Could be useful to many. Need help correcting

If you are going to want to make template modifications on your own - you are really handicapping yourself by not using the tools available (webmastermode and firebug are essential). I keep a "sandbox" non production cart available so I can try things without worrying about hurting anything. You'll need to be fearless in order to come up that learning curve!

You might also consider posting links - it makes it easier for people to help you.

One thing I can see that would cause problems is if you are using the same name for two forms:
name="form_manuf"
onchange="document.form_manuf.submit()

The onchange might be confused about what to do with 2 forms with the same name.

You could try changing the second form to:
name="form_manuf_b"
onchange="document.form_manuf_b.submit()

Maybe to help with the SEO issue Steve is advising you on - you should try and think of a way the spiders can still crawl your manufacturers. I think there are sliders built with css so you could still have all your links there - but the display could take up less space. Also - maybe if you have a link to an html site map, it could help with the problem.

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #14  
Old 01-06-2011, 03:22 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Could be useful to many. Need help correcting

Quote:
One thing I can see that would cause problems is if you are using the same name for two forms:

Damn didn't even come to my mind the whole thread here is to use 2 forms, I was kinda focusing on the correct code Yes you can't have 2 forms on the same page with the same name.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #15  
Old 01-07-2011, 04:58 AM
 
Anty Anty is offline
 

Advanced Member
  
Join Date: Aug 2009
Posts: 40
 

Default Re: Could be useful to many. Need help correcting

Thank you gb2world,
your valueable advice solved my problem !!.For SEO I have CDSEO Pro with xml site map generator so the manfacturer pages will be crawled there......I think and hope.What do you think Steve?
__________________
v4.2.2
Reply With Quote
  #16  
Old 01-07-2011, 07:55 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Could be useful to many. Need help correcting

SE will read from the sitemap.xml yes but it won't be able to read the different manufacturers pages from the dropdown menu - there are no links there. Your individual pages will be crawled from the sitemap yes
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #17  
Old 01-07-2011, 02:56 PM
 
Anty Anty is offline
 

Advanced Member
  
Join Date: Aug 2009
Posts: 40
 

Default Re: Could be useful to many. Need help correcting

Hi Steve,
so at the end of the game the pages will get indexed, happy with that even though it would have been better for links to be there to make the home page sturcture more SE friendly,but it will do for now.Thanks to Steve and gb3world for your help.If anyone wants any help doing this customization for their site I'll be glad to help even though simply reading the thread could get the job done.

Cheers
__________________
v4.2.2
Reply With Quote
  #18  
Old 01-07-2011, 04:18 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Could be useful to many. Need help correcting

I was thinking more along the lines of an html site map that you link to from your front page, perhaps in the footer or a help menu. Then, a spider could crawl your manufacturers from the front page. I'm not an SEO expert - not sure if the xml accomplishes the same thing as far as ranking pages.

----
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #19  
Old 01-07-2011, 07:31 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Could be useful to many. Need help correcting

Both sitemaps are helpful.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #20  
Old 01-11-2011, 12:05 AM
 
Anty Anty is offline
 

Advanced Member
  
Join Date: Aug 2009
Posts: 40
 

Default Re: Could be useful to many. Need help correcting

Hi again,
thanks for your help. I would like the menu I created to be showing only in a certain root category and all its subcategories.Was thinking of something like this in the home.tpl.

{if $location[1].0 eq "rootcategoryname?" }
{ include file="customer/menu_rootcategoryname?.tpl" }
{/if}

But doesn't work. Could someone help me point out
the mistake.I'm using 4.2.2.

Thanks a million
__________________
v4.2.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:53 PM.

   

 
X-Cart forums © 2001-2020