I was wondering if it was at all possible for OpenCart to display a "new" flag/ribbon for the latest products? (on any page) I've been looking for this and I can't seem to find anything. Any help would be greatly appreciated. I'm using OpenCart 1.5.6.
If you wanted to do it for say the 20 newest products, you could call
$latest = $this->model_catalog_product->getLatestProducts(20); then check if the product id is in $latest. If it is add a field to that product like $product['new'] = true; Then you can check for that in the template and add custom markup if it does.
Related
I have a view in a multi-languages site on Drupal 8 which worked fine.
When I submitted content on the second language items starts showing twice. I believe I have to pass the language on the contextual filter but I don't know-how
Any help is appreciated.
I managed to solve this issue by going to view-->advanced--->other---->query string and then clicking on distinct
I'm working on a webshop using OpenCart2.x. I would like to add category while I'm adding product and assign product to that category.
Just to clarify... Let's say I want to add "HTC One" to category "Android". I would like to go to Catalog > Product > Add Product, enter "HTC One" details and
if category "Android" dosen't exist OC should offer to create new category.
It is possible in wordpress/woocommerce so I hope it is possible in OC2.
Sorry if the question is not for this site.
Thank you!
No, this is unfortunately not possible in vanilla OpenCart. However, I did find somewhat of a trick to make this process a tad bit more convenient.
If you open your OpenCart admin panel in 2 different browser instances that use different sets of cookies (different browser or incognito/no cookie mode) you can make your categories in one instance and then the category auto complete list in your product creation page will instantly update. Not exactly the desired functionality but definitely better than having to switch back and forth.
here is my question. I have one ProductListPage where I want to display a single product. I have a simple Product catalog with one category "TestCategory" and one product assigned to it "TestProduct". What I want is just to display the product in my Product List Page.
However, when I access the Product List Page, there is a message stating:
Category with code 'TestCategory' not found! (Active session catalogversions: ProductTestCatalog.staged, ContentTestCatalog.staged)
Both content and product catalogs are synched and everythings seems fine. I started an indexer operation wizard and it was successful, but nothing has changed, I keep getting this message, even though the category is existing - it even comes with the name "TestCategory not found" What should I do to find it?Can you provide any ideas or solution to this problem? Maybe the problem is in my Solr Configuraiton? If yes, any ideas how to fix it will be highly appreciated. Thanks! :))
The ProductDetails Page in the hybris Accelerator does not use SOLR so it is unlikely to be that.
The error suggests that the category TestCategory is not visible to the current user in the current session.
The Active Session catalogVersions should show Online catalogs only unless you are in Preview/LiveEdit. So this suggests something is wrong.
You should try to understand the SearchRestrictions in the Session.
I'm working on a sitecore project where i'm using WFFM (Web Forms For Marketers), I have a form and would like to change the styling of a date picker. By default it appears with -'s. I ant /'s.
One way would be:
$('.scfDatePickerTextBox').val().replace(/-/g,'/')
Theres no option to change the styles? that I know of? Any help guidance would be grateful.
When using WFFM as your forms builder i think it is not possible to style the dateformat.
When adding a date field, it always shows up as three droplists:
see this image: http://content.screencast.com/users/MoonCrawler/folders/Jing/media/627a9a76-de8d-4ad7-9097-81e21d38f54c/2013-01-30_1658.png
If you want to change styles (display) assign different css class. if your date is displayed with -'s in stead of /'s then i think you are using a custom form, you should be able configure the output of the date via the code behind file.
if this does not help, please provide sitecore version, WFFM version and type of form used.
I want to add an announcement list to my masterpage, so that these announcements are shown in all the pages in the sitecollection.
from googling i found out that we cannot add dynamic webparts to master page.
can this be achieved programmatically or through powershell.
also i want to show the latest 3 announcements ( modified by date)
is it possible???
thanks in advance
Praky
Quite Simple really using the Content QUery WP. IN Presentation part of the Edit WP. Use the sort by Created in descending order and limit items to 3.