-
Posts
26 -
Joined
-
Last visited
Contact Methods
Profile Information
-
Location
Indonesia
-
Activity
User/Merchant
Recent Profile Visitors
2,107,966 profile views
mikecheung's Achievements
Newbie (1/14)
4
Reputation
-
Google adwords conversion tracking code placement
mikecheung replied to williambesson's topic in Core developers
Place it at the very bottom after the {/if} -
how do you edit your theme?
mikecheung replied to Marcus57's topic in Addons, modules and themes developers
Do you have any experience coding? if not, it may be a bit difficult for you to edit too much. It also depends on what you need to have changed. But to answer you question, all files that you need to edit will be in the themes folder. It really will depend on what you need to change in the theme. -
Friendly-URL similar to product pages for a Custom Page
mikecheung replied to mikecheung's topic in Core developers
If I am not wrong this can be done manually via .htaccess edits as well, sadly I don't know how to write the expression to do this. Hopefully as people are waking up Monday morning, someone will be kind enough to share an answer.- 1 reply
-
- friendly-url
- custom page
-
(and 3 more)
Tagged with:
-
I don't have access to my Prestashop files at the moment, but you can see all the prestashop queries in the files in the class folder. Most probably the query you are looking for is in the category.php or product.php file.
-
Are you using one page checkout or the default 5 step process?
-
How to test if on product page ?
mikecheung replied to Nerloggz's topic in Addons, modules and themes developers
I am not sure if this is what you mean, but in your template you can use something like this {if $page_name == 'product'}Do Something{/if} -
1. The best way to do that would be to write a custom SQL query, you can probably get most of the code by looking at an existing module, ie. HomeFeatured (this however does not use the metatag as a criteria) 2. In your smarty code, you can use this {$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'} the most important variables is the image id, which should be in the product information and the size of the image which can be set in Prestashops BO.
-
Can you give some more information, what changed since it began not working? are you using any modules or is this all the default carrier settings? Did you change the costs, weight or any other information related to the carrier?
- 1 reply
-
- Troubleshoot
- Help
-
(and 2 more)
Tagged with:
-
How can I view the SQL query on Smarty?
mikecheung replied to ReactionCode's topic in Core developers
I am going to do my best to give you an example of what you have to do based on what you are showing me. In the class getProducts () $sql = "sql query"; return $sql; Imagine that this function is a closed box, that no one can look into without you sending that information out. Return $sql is what will send the information out when you call this function. Every other variable is stuck inside the function. In the controller before the .tpl call $query = product::getProducts(); This calls the function that processes the query and defines the variable as the result from that function $this->context->smarty->assign('sql',$query ); This tells smarty that $sql = $query in the .tpl file {$sql} This display the contents for the $sql variable I hope this helps. For me, the easiest thing to do is in the class function, just use echo $sql; It will show at the top of your page -
Highlighting of activated buttons in permanent link block
mikecheung replied to Syngmaster's topic in Core developers
can you share some the code you used? How is it detecting what page you are on, is it using $page_name? My guess is that there is a problem in that part of the code -
Payment module - need order id before validateOrder
mikecheung replied to mikecheung's topic in Core developers
Thanks guys, that was one of my options, it's just more difficult to compare payment gateway report and order list page because the order_id is what shown and not the cart_id. Was hoping for a different way, but if that is what is recommended, that's what I'll use. appreciate the answers.- 3 replies
-
- validateOrder
- payment
-
(and 2 more)
Tagged with:
-
How can I view the SQL query on Smarty?
mikecheung replied to ReactionCode's topic in Core developers
@javsmile echo is a php function - if you just need to see the query, you can just use echo to see the query. I would need to see your code to give you specific place to place that code. you can use pastebin to share the code.