I want to add a dropdown box at header that shows cities, and when a customer select a city the whole page get refreshed and just display that city products.
I mean when a city has been selected, all products that exist on that city get display.
How can i develop this?
Please help me.Its very urgent requirement for my project.
Thanks in advance
add all products to the desired categorie in the citys you want
Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com
categorie citysvijaya.settipalli wrote:Hi,
I created category group name cities.
How to display cities category group in header.
tab data tick box top: show in topmenu bar.
with sort order you can set the order of your categories in topbar.
Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com
2. Create SubCategories for every City, called Test City ONE on my Test Site.
3. Add existing Products to ALL the Cities, where it is beeing offered.
(see Image, on how this is beeing done)
You can choose multiple settings, where a Product shall be visible.
It will display and be handled as/like a regular Category Selection, with every City as regular Subcategory.
Basically, it would be best, to replace all existing TOP Menu Links with States, Regions, or something, containing the matching Cities, to make it transparent and easy to locate, for Visitors, or then, make a (MODIFIED and seperately defined/declared, or simply hard-coded, by copy/paste/edit Page HTML-Source!) Copy of the TOP MENU, and place it above or below the existing one.
Check the Extension Section, something like this may exist already, in some form...

Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
I am using Opencart technology.
I would like to display in header bar,not in menu bar.
Just display only city category.
I have it work on my OC v.1.5.6.5_rc Version Default Theme, and no errors seen so far. Don't test it in other Themes, because if you use a responsive Theme, the Module has to be placed a Top, and possibly a little modified as well, to look nice on all Screen widths. I have not made any test on such, so far, but he CSS-Style Class can be defined !!

Opencart menu management v1.5
http://www.opencart.com/index.php?route ... n_id=11220
I found it, and other related Mod's, here:
http://www.opencart.com/index.php?route ... 0in%20menu
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Thank you very very much for your reply.
I attached one image for actually requirement.
.
I would like to add cities form backend admin.That cities display as dropdown box at header position.
Please give me your valuable help.I am struggling with this problem since 10 days.
Help me my client is shouting at me.
Thanks in advance.
you will have to write a complete new module for this.
alterative, use categories for your citys and move the code for topmenu to topheader.
Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com
Can you tell me how to get only one category code.
I am customizing the header.tpl file, But i get all categories. but i don't know how to get only one category code.
Please send the code how to get one category (cities)
In the responsive free AGNES-Theme for OC v.1.5.6.x, one can find such a top_header Implementation,
including the corresponding source, for those, aware of what to do with, in case, they need a working sample.
I looked around a little, to find possibly easy matching solutions, but you have to take, what exists, for free, or
then, get something made, according your needs.
So much to this, I should work on my own stuff again more ... !

Good Luck !

Ernie
Version 1.5.6.x Extensions, to add/modify/etc. Header Sections:
Header Special Extension free:
http://www.opencart.com/index.php?route ... n_id=14486
Custom opencart header menu free:
http://www.opencart.com/index.php?route ... n_id=14861
Header Special Extension paid:
http://www.opencart.com/index.php?route ... n_id=15740
Add external - internal links in header free:
http://www.opencart.com/index.php?route ... n_id=20404
Footer Special Extension free:
http://www.opencart.com/index.php?route ... n_id=14352
Menu Designer paid:
http://www.opencart.com/index.php?route ... on_id=9440
Top Menu paid:
http://www.opencart.com/index.php?route ... n_id=14173
Position below header & above footer paid:
http://www.opencart.com/index.php?route ... n_id=14593
OC v.2.x Versions, just to mention it:
[OCMOD] Extra Positions by viethemes OC v2.x free:
http://www.opencart.com/index.php?route ... n_id=20569
Xbar - top-bottom nav bar OC v2.x free:
http://www.opencart.com/index.php?route ... n_id=23082
Flexible Menu OC v2.x free:
http://www.opencart.com/index.php?route ... n_id=22754
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
I am getting the only one category and its subcategory from database.
<?php
$query=mysql_query("SELECT oc_category.*, oc_category_description.* FROM oc_category JOIN oc_category_description ON oc_category.category_id=oc_category_description.category_id where oc_category.parent_id=64");
$res=mysql_fetch_array($query);
$parent_id=$res['parent_id'];
echo $parent_id;
?>
<select name="cities">
<option value="">Select City</option>
<?php
while($city=mysql_fetch_array($query))
{
?>
<option value="<?php echo $city['name']; ?>"><a href="#"><?php echo $city['name']; ?></a></option>
<?php
} ?>
</select>
But anchor tag doesn't work.
Please give me your valuable suggestion .I click on particular city it shows that city products only
Please find the attachment. Thanks in advance.
Technically it is possible, but it also depends on, if a Custom Theme also contains other Files,
placed somewhere in the Catalog/whatever/... and/or in the Admin Section.
Then, one would have to check and eventually slightly rewrite everyone of such files/lines, involved.
Otherwise, usually, only the header.tpl and possibly footer.tpl includes hard-coded direct CUSTOM-THEME-
linked Content.
Wild Samples of such happenings, in 3 different places:
Controller:
Code: Select all
class ControllerModule---Kvvaradha--- extends Controller {
class ControllerModule---Christmasboom--- extends Controller {
Code: Select all
class Model---OmfOmf--- extends Model {
Code: Select all
<?php include ('catalog/view/theme/---agnes---/php/payment.php'); ?>
catalog/view/theme/---agnes---/image/layout/footer/icons/location_<?php echo $this->....
<link rel="stylesheet" href="catalog/view/theme/---ancart---/stylesheet/responsiveslides.css" />
<script src="catalog/view/theme/---ancart---/stylesheet/responsiveslides.js"></script>
Just to give you an idea.

Ernie
openshop.li/shop/
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Users browsing this forum: No registered users and 30 guests