| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Pull down menu for category and subcategory | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Any help with the code or direction on what needs to be edited would be greatly appreciated.
I am trying to make X-Cart Pro cart work, show and sell products and services based on a country and city selection, i.e. make customers first select a country, then a city in the selected country, and only then let them see and purchase products and services, offered in the country and the city they have selected, meaning that there is no need for shipping. Each city for a corresponding country will have different sets of services and products. After studying the X-Cart Pro admin panel and the code of the shopping cart I think that the easiest way to implement the mentioned above approach would be via the category and subcategory creation for countries and cities in the admin panel. Only there are a few problems with it and I would appreciate it very much if someone would help me with the following: 1) I would like to create 1st pull-down menu (i.e. <option value="0">Select Country</option>, etc.) for a country selection (i.e. categories of 1st level for different countries), then create 2nd and separate pull-down menu for a city selection (i.e. subcategories in each 1st category for the cities in each country). Then I would like to place these pull-down menus at the center and next to each other at the bottom of the header, i.e. next and to the right from the search field. It means that I have to remove the pull-down menus for the 1st level categories from the menu on the left and the pull-down menus for the 2nd level categories and the usual list of subcategories from the loading page in the center, but I need 3rd or 4th level (it will depend if it will be decided to add the state selection as 3rd pull-down menu at the top for countries with states) of subcategories again load into the central page and appear the normal way, i.e. in 1-3 columns with images/thumbnails, links and descriptions for certain types of services and products, so customers could click on each image/thumbnail and view or purchase the different products and services listed in each type of products and services showing in the loaded page. 2) Additionally, I would like to keep track of categories and subcategories, i.e. list them as customer selections in the location bar, in the shopping cart during the checkout process, and finally in the order details, i.e. invoices stored in our database, including in the invoices, which are sent to customer via e-mail, i.e. make categories and subcategories a part of the customer selection process, so it would be known in which country and city customers would like to receive services and customers would see the country and city selections during checkout and in their invoices in addition to other details of their orders. I was able to find some code in X-Cart forums and generated pull-downs of 1st level categories in the left menu box and pull-downs of further levels in the loading page in the center. Here is what I used in the categories.tpl file Code:
and the subcategories.tpl file: Code:
Unfortunately, this code does not allow stopping the pull-down creation at certain level in the subcategories, i.e. after the city selection in my case. Also, I do not know how to rip these pull-down menus out of their places in order to place them side by side in the header, i.e. I would like the category menu box on the left completely disappear without affecting the functionality of shopping cart and make disappear only 1-2 levels of subcategory pull-down menus in the loading page in the center. Then, I do not know how to stop the creation of pull-downs from subcategories at certain level, i.e. 3-4 levels deep, and then make subcategories load and show in normal way in the central page, i.e. how it was before - with images/thumbnails, links and descriptions. Please, help.
__________________
wm3508 X-Cart Pro v. 4.0.14 |
|||||||
#2
|
|||||||
|
|||||||
![]() This is for X-Cart technical support team from Ulyanovsk, Russia or wherever you are:
Please, read my post at the following link: http://forum.x-cart.com/viewtopic.php?t=19798 I would like to get some comments/answers about those slowdowns, warnings and errors for invalid arguments when COOKIES and JAVASCRIPT are turned OFF, as well as about dysfunction of language selection. If those issues are bug related, it would be nice to know about possible fix/patch., i.e. when it would be available, etc. Thank you.
__________________
wm3508 X-Cart Pro v. 4.0.14 |
|||||||
#3
|
|||||||
|
|||||||
![]() If you want to contact X-Cart, you should do so via your file area. This forum is run by the users, not by X-Cart.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||
|
|||||||
![]() Thank you for advice to contact X-Cart via communication center in the file area of Help Desk.
I have contacted them from the file area and gave them the link to my post at this forum, so they could have a look at the code and solutions which I tried to find. Since this forum is running from their server, I suppose they should have access to it. Again, thank you.
__________________
wm3508 X-Cart Pro v. 4.0.14 |
|||||||
#5
|
|||||||
|
|||||||
![]() Yes, they do indeed have access to it, but it is mainly run by the users.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||
|
|||||||
![]() Posting the code in this forum is much easier and gives a better view than in their communication center. I guess they do not expect people posting code in their support center. Then why do they offer technical support points? I hope not just for help with the installation, but with actual code and adaptation to customer needs, etc.
By the way, they just responded to my request in the communication center that Quote:
Plus, they told me the following: Quote:
Actually, I was hoping and thought that my 1st approach via categories is less invasive and would require just a couple of {if} and {else} logic statements and modification of a few template files. Well, I guess they know their software better than anybody else. Either way, I would like to see what they are going to quote and how much this custom work of theirs would cost.
__________________
wm3508 X-Cart Pro v. 4.0.14 |
|||||||
#7
|
|||||||
|
|||||||
![]() They offer tech support points to fix problems/answer questions. Custom code projects (like the one you are proposing) wouldn't be handled by support points.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#8
|
|||||||
|
|||||||
![]() Well, it is nice to know what their technical support points meant to cover. It would be nice if they would somehow specify this in their communication center, because different customers might have technical questions of different complexity.
__________________
wm3508 X-Cart Pro v. 4.0.14 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|