i am new to prestashop and am trying to create an ecomm by myself, i am using a marketplace and have added the product reference as an author name and is successfully being displayed in the back-end. But my problem is that it isn't being displayed at the front end (product page).
But when these fields are being created by the admin, all fields are displayed in the produce page.
The screenshot of the front and back-end is attached below.the author and isbn fields are appearing
But here the author and isbn are empty
PLEASEE HELP
As you can see, you have some problem in your code. First of all you should read something about prestashop and creating shops. Next step is to fix a problem in a file smarty_internal_templatebase.php in line 53.
As I can see you have a problem with product's publisher. I assume your code looks like this:
<p id="publisher">{$product->publisher}</p>
// in other words
<p id="publisher">[show publisher no matter what]</p>
In the scenario above, we can clearly see that if a product we want to show doesn't have a publisher, then we are stuck.
I recommend your code to look this way:
<p id="publisher">{if $product->publisher}{$product->publisher}{else}No publisher{/if}</p>
// again in other words
<p id="publisher">[if publisher exists, show it, else write something else]</p>
Try to check on that and let us know what you've found.
Cheers, Mentozz.
Related
I'm currently working on creating a custom display template for people search result page. I copied out of the box Item_Person.html search display template and modified it to display some more fields.
In the out of the box template also there is a managed property called skills but when I using it, its not returning any values associated with the user profile skills property (SPS-Skills).
As you can see its already mapped but Skill value always comes as empty. I want to retrieve and display inside the custom template.
Please help me if you have done something similar.
Check the following steps
Add meta data to ManagedPropertyMapping
2.Then inside the fuction get the value of metadata
<!--#_ var datacreated = $getItemValue(ctx, "Created");_#-->
3.Then palce the variable where you want <h2> _#= datacreated =#_ </h2>
Thats it publish the html hope its work
I have a working template that is included in the right rail of my EE site.
This template pulls from a channel that simply relates entries from other channels to this specific channel on a one-to-one basis and is used as a sort of "highlight reel" or "Top 5" for the sidebar. The relationship is using Playa to link multiple different channel's entries to this one.
It works throughout the site with exception to an entry's view template. In that template it only returns with highlighted entries that match that channel. I am simply using the same embed code for another template that is embedded into every page. It embeds like:
index <- right_rail <- highlight_reel
For example, the highlight reel can pull from Activities, Events, and Food channels using Playa for the relationship. When you navigate to the view template of a particular Events entry this only displays Events entries that have been related.
Is there a configuration or parameter that needs to be set in order to keep the results consistent?
Let me know if there is anything else that would help you help me.
Some additional code for the loop:
{exp:channel:entries channel="most_popular" dynamic="yes" orderby="date" sort="desc" limit="5"}
{exp:playa:children field="popular_entry" status="not closed" disable="members" limit="1"}
Thanks a bundle in advance!
I was directed to a similar question that was asked and it totally solved the issue.
My mistake was that I had assumed that it would maintain the entry_id but by embedding it I was able to solve it.
Thanks a bunch!
Is there any possibility to show a photo of a reviewed Person in the google search result of a review aggregate just like in a recipe?
http://www.google.com/help/hc/images/webmasters_173379_en.png
I have a div with itemscope itemtype="http://data-vocabulary.org/Review-aggregate" and all relevant data marked up inside including an img with a profile-photo marked like this:
<img itemprop="photo" ...
In google developer´s rich snippet testing tool I see all that information including the photo and its path, but the preview search result only contains the rating stars and stuff like recent review text, pubDate and author, while in the specs on schema.org it doesn't look like there's another solution.
Is there any solution? Thanks and sorry for my English.
Please read carefully this manual:
https://support.google.com/webmasters/answer/146645
You can find there that photo property is for the item being reviewed, not for reviewer.
Aggregate review is for average rating. Reviewed person is actual for individual reviews.
I have, what I think is, a simple feature that I am trying to add to my Orchard (1.6) site, but I can't find any tutorials or instructions on how to do it. I have a custom type called "Office" and each office has a custom field called "State" indicating which state the office is in. I actually designed my Offices as a custom part in code with specific properties such as State on it, but I "think" it's the same as if I added the State through the Admin interface as a field on the Office content part.
Now, I can create a basic projection to show all the offices with a simple filter of "Content with type Office" to display all offices. However, what I want to do now is to have a drop down list at the top of the page that says "Filter by: [-SELECT STATE-]" with a list of all 50 states. When the user selects a state, the page should refresh and display just the offices in that state.
This is where I'm stuck. Should I do this through the code, or can I do this through the Admin UI? If through the code, should I model it after the Orchard.Search module (which I tried to do, but I am completely lost). If I can do it through the UI, do I use projections? If so, do I have to create 50 separate projections (one for each state)? That seems extremely time consuming to create and maintain.
Any help is GREATLY appreciated!
FYI, the site at http://ktowneric.com/listings/search (which uses Orchard) is very similar what I am looking for, and the developer stated he used projections, but I can't seem to figure out how he did it.
You can definitely use a projection. If you notice when you use the search function on the page you referenced, the inputs are formed into query string values. You can use tokens to grab the values from query strings to use in your projection filter. For example, if you're using fields as you stated, then you just add a filter for that field and in the value field use {Request.QueryString:State}. Or, replace "State" with whatever key you're using for the query string value.
That solves your projection issue. You will need to build a search form that would look something like this...
<form action="/search-results" method="Get">
<select name="State">
<option value="OH">Ohio</option>
...all the states...
</select>
<input type="submit" value="Search" />
</form>
"/search-results" could be a projection page or any content that has the projection widget present. You could build the form as a widget that you can place somewhere, or for testing purposes, you could just paste this html into an html widget to try it out.
Hi everyone thank u for reading this
First of all sorry for my explanations, my tech english is not perfect
Well i have a channel named “blog” connect to different categories inside a group category.
I use an unique template for displaying all entries of all categories, i call it : “article”
Inside the article template, I want to display “preview” and “next” links to navigate through each entry of only one category (ID = 13)
with this code (example with the preview link) it’s working and when i visit a entry belong to the category 13 i see my links and able to navigate
{exp:channel:prev_entry category=“13” }
/expressionengine/themes/site_themes/agile_records/images/arrownavleft.png
{/exp:channel:prev_entry}
But my problem begin now,this links are also visible in all categories entries i don’t know how hidding these links (preview and next) in the article template for them! the code above is not enaugh , i try some conditionals with no success
Sorry i am mabye not clear but hard to explain in english
Thank u for any answer
R.
Try wrapping your Prev/Next Entry tag in a conditional so it only displays on entries for category 13.
I'd use Low Seg2Cat for this.
{if segment_1_category_id == 13}
{exp:channel:prev_entry category=“13” }
....
{/exp:channel:prev_entry}
{/if}
You'll need to set the segment_n_category_id to match the URL segment of your category.