-
Posts
51 -
Joined
-
Last visited
About mohamedali
- Birthday 05/02/1989
Profile Information
-
Location
india
-
Activity
Developer
Recent Profile Visitors
2,433,934 profile views
mohamedali's Achievements
-
Create Session And Check is exist in theme
mohamedali replied to mohamedali's topic in Addons, modules and themes developers
i created a php file "city_session.php" in root folder with following code, /*----------------city_session.php-------------------*/ <?php include 'config/config.inc.php' ; include 'init.php' ; Context::getContext()->cookie->city="chennai"; //echo Context::getContext()->cookie->city; ?> /*-------------------------------*/ and call it via normal jquer ajax... globa.js $('#mycity').click(function(){ var city=$('#mycity').text(); $(this).parent().hide(); $(this).parent().prev().hide(); $.ajax({ url: 'city_session.php', type: "POST", datatype: 'json', data: "city_value="+city, success: function (jsonData) { //alert(jsonData); $('.shop-phone').append('<span>City :'+jsonData+'</span>'); } }); }); }); /*--------------------------------*/ header.tpl {if !isset($cookie->city)} <div id="graybg"> </div> <div id="city_select_div"> Select your city : <div id="mycity">MYCITY</div> </div> {/if} /*---------------------------*/ -
Create Session And Check is exist in theme
mohamedali replied to mohamedali's topic in Addons, modules and themes developers
i got solution and solved it.. -
hi friends, i am a new to php and prestashop, now i am working in online grocery shop site. what i need is when a customer entered into the site,first they want to select their city. once they select their city, the page never ask to select city till the session expire.. i wrote jquery ajax for this.it works fine first time and display the session $_SESSION['city'] variable value. if i refresh the page the {if !isset($smarty.cookies.city)} condition does not work again.. help me.. header.tpl -------------------------------- {if !isset($smarty.session.city)} <div id="graybg"> </div> <div id="city_select_div"> Select your city : <div id="mycity">MYCITY</div> </div> {/if} global.js ----------------- $('#mycity').click(function(){ var city=$('#mycity').text(); $(this).parent().hide(); $(this).parent().prev().hide(); $.ajax({ url: 'themes/default-bootstrap/city_session.php', type: "POST", datatype: 'json', data: "city_value="+city, success: function (jsonData) { $('.shop-phone').append('<span>City :'+jsonData+'</span>'); } }); }); ----------------------- city_session.php ------------------------ <?php echo $_SESSION['city']=$_REQUEST['city_value']; ?>
-
ohh...thanks for your suggestion. is there any other e-commerce solution available to achievethis?
-
hi friends, is there any way to force user to select city at the first time he entered into the site. and display products based on the selected city.like that the image here.
-
i have to display products by manufacturers as well as brands. but all the payment module treats manufacturers as brands. for ex: In India the manufacturer HINDUSTAN UNILEVER had many brands such as AXE(deodorant), Pepsodent (toothpaste). deodorant, toothpaste are categories.. have do i do it? see this link.. http://www.hul.co.in/brands-in-action/view-brands.aspx.. Manufacturer : Hindustan Unilever Limited. they have brands : AXE,LUX,DOVE and so on.. i have to display Products by Manufacturer and by brands.. help!..
-
hi all, i have the http://www.presta-sms.com/ free sms module and its works with free of credits. but i buy an sms credit from local SMS servervice provide, i have the sms api, //http://sms.site.co.in/sendsms?uname=yourUsername&pwd=yourPassword&senderid=yourSenderid&to=9444xxxxxx,9400xxxxxx,8129xxxxxx&msg=yourMessage&route=A. how do change it on that module.. please help... thanks in advance...
-
upload image alone for existing products
mohamedali replied to mohamedali's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
oh thanks to you,