Try adding "adding a history of product under consideration."
I try to add the product given iStory http://docs.businesscatalyst.com/user-manual/e-Commerce/Products/adding-a-viewed-product-h history
but I get errors in the code when I place:
{% if globals.cookie.lastVisited %}
{% assign prodIds = globals.cookie.lastVisited | append: "]" | prepend: "[" | split: "%2C" | join: "," %}
{module_data resource="products" version="v3" fields="canonicalUrl, name, smallImage" where="\{'id':\{'$in': {{prodIds}} \}\}" collection="lastProducts" template=""}
<h4>Your last visited products:</h4>
<ul>
{% for item in lastProducts.items %}
<li><a alt="{{item.name}}" href="{{item.canonicalUrl}}"><img alt="{{item.name}}" src="{{item.smallImage}}?Action=thumbnail&Width=50&Height=50"/></a></li>
{% endfor %}
</ul>
{% endif %}
Any help would be appreciated.
Okay, it looks like I did it after 1000 x times of attempts, the structure is as follows:
STEP 1: create your main template for pages:
Main model >
Insert libraries as follows:
1 - Jquery latest (since I'm working on jQuery v1.11.1)
2 - Jquery.cookies
Inside the container, you have your {tag_pagecontent} just after the liquid code provided:
{% If globals.cookie.lastVisited %}
{% assign prodIds = globals.cookie.lastVisited: Add: "]"} » | Add: '[' | Split: '%2 C ' | join: ',' %}
{module_data resources = 'products' version = "v3" field = "canonicalUrl, smallImage" where = "\ {'id': \ {"$dans": \ {{prodIds}}} \}" "lastProducts" =' model collection = ""}
Your last visited products:
{% for section in lastProducts.items %}
{% endfor %}
{% endif %}
STEP 2: This may work ok for you, but I use another way to make my exit of products:
Inside of your grand - product.tpl (if you use the model liquid custom products) or online store > great - product.html
Insert the code below: (just as it is! minor errors fixed)
var currentProductId = "{{id}}";
var howManyItems = 4;
if(parseInt(currentProductId) !== "NaN" && typeof $.cookie('lastVisited') === "undefined") {
$.cookie('lastVisited', currentProductId, {
expires: 70,
path: '/'
});
} else {
var currentValues = $.cookie('lastVisited');
currentValues = currentValues.split(',');
//remove item if it already exists
if($.inArray(currentProductId, currentValues) > -1) {
currentValues.splice($.inArray(currentProductId, currentValues), 1);
}
currentValues.push(currentProductId);
if(currentValues.length > howManyItems) {
$.cookie('lastVisited', currentValues.splice(-howManyItems), {
expires: 70,
path: '/'
});
} else {
$.cookie('lastVisited', currentValues, {
expires: 70,
path: '/'
});
}
}
Always make sure that you don't have a single error on your logs set your JS libraries and avoid conflicts of BC Js.
If the above doesn't work just try captures all the code in JS order first and LIQUID on your shop online > large - product.html
Hope this helps the community, and I believe BC should create a possible comments and problems on this page, rather than here.
Tags: Business Catalyst
Similar Questions
-
try adding a wired printer Brother MFC-255CW on a Windows Vista-based computer
try adding a wired printer Brother MFC-255CW on a Windows Vista-based computer
Hi jande1,
Please see the following link for the Brother's Web site:
I hope this helps!
Debra
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
Hi people, I try to install Lightroom 6 on my pc with Windows 7/64-bit, but the installation occurs an error message indicating that installation of this product under 'Vista' is not possible - but I'm on Windows 7, does anyone can solve this problem?
Hello
Hope that helps!
Kind regards
Sheena
-
"You cannot use this product under a guest account" - need help!
I am trying to use a trial version of Adobe Flash Professional CS6 and I installed it under an Admin account and I am an Admin account, but whenever I try to run the software, a pop box up appears and says "Do not use this product under A guest account", I even went to the trouble of making a new account administrator only for installation and execution of Flash , but the same thing happened. But this question also came with CS5, and those that worked well are CS4 and below, but I'll be happy even if you just give me a link where I can download Adobe Flash Professional CS4 trial. Thanks for all your comments I receive.
Raj Ubhi.
P.S. I am using Windows Vista Ultimate 64-bit
Older versions of the test are expected to be found on the following sites:
http://prodesigntools.com/download-Adobe-CS4-and-CS3-free-trials-here.html
http://technolux.blogspot.com/2011/02/Adobe-direct-download-links-less-Akamai.html
-
I get the error number: 0x80072EE2 when I try to run windows or microsoft update under Win xp
I get the error number: 0x80072EE2 when I try to run windows or microsoft update under Win xp
Hello
I suggest you try all the steps in the following article.
You may encounter temporary connection related errors when you use Windows Update or Microsoft Update to install updates.
http://support.Microsoft.com/kb/836941I hope this helps.
-
I try to use a pro 7 product key offical windows to activate windows 10 pro, but it does not work?
If I search on possible improvements, he says it should work?
Try the chat support:
Activate your Windows 10 license with Microsoft Chat support
-
After the accident and reinstall: cannot use this product under the guest account
I had a computer crash. After reinstall ADOBE Standard XI (Windows, German) I get the message: cannot use this product under the guest account.
I tried to run it as an admin - without success. Before thr crash, it works perfectly.
What is the problem - and how to solve?
I run Windows 8 PRO
Thanks for the help, Uli
-
I installed Acrobat Pro XI (academic edition). But I get the message "cannot use this product under a guest account. What should I do?
Run as admin / talk to your IT Department.
Mylenium
-
I have Firefox 26. I want to use FolderLink to send large attachments. FolderLink instructions tell me to go to tools, Options, accessories, outgoing and choose my storage provider (in my case Dropbox) in a menu drop-down. When I go to tools, Options, there is that any "attachments" label to click and there is nothing in either of the options which seems to lead to this menu drop-down. FolderLink instructions say that it is supposed to work on all above Firefox 13 or 16. How to make it possible to send a large file (in this case audio) via Firefox?
arpopkin, the instructions you found is for the Thunderbird email client and not the Firefox web browser. There is no FolderLink in Firefox.
-
Try adding 8 of Windows Media Center to my Windows 8 Pro edition.
Copy the product key sent to me. Then, when I try to add features, it validates the key and stops with this message "unable to create a restore point. Microsoft technical support could not help
"Cannot create the restore point. "Stop this wizard and try again. Tried several times without success.
Is there a way t download 8 Pack Windows Media Center Pro and then apply the code of product that has been shipped by Microsoft?
Saturday, 13 September, 2014 18:29:36 + 0000, diy75 wrote:> I have the same problem. Please help or tell me how to get the key back.Try what has been selected in the last reply in this thread:__________________________________________________________________________________________________BarbMVP Windows Entertainment and connected homeMy Blog - http://digitalmediaphile.com/Please mark as answer if that answers your question -
Try adding card h8 Startech Sata III - 1360t
Okay, I need help. I have a H8 - 1360t I'm in perpetual on upgrade mode. Currently, I have stock HDD and two Sandisk Extreme 240 GB SSD hybrid Seagate Momentus xt 750 GB disc. I had to move the stock HARD drive in a drive bay with a switchable dock hot, because of the single holder holding three discs. I also maxed out the RAM to 16 GB and have added a GTX670 4 GB video card. The system is used for games and video editing.
Long story short, I need another port SATA 6 Gbps. I tried to order a card Startech out of Amazon, a PEXESAT, with 2 internal and 2 external ports 3221. I put the riders for in-house, in accordance with the instructions, and my PC would not boot at all. I still had no video to see what type of error it was, as appropriate. PC stops after 10 seconds, don't try again, no luck. Take the card everything starts normally. Check the drivers, also those on the cd, even trying to download the most recent on the site of Startech. Nothing works. I have for a Highpoint RocketRaid, which came yesterday. Problem is, it has the fat PCI-e connectors. No luck on that front, either. They finally reached Startech technical support, he said probably a chipset compatibility issue. I'm supposed to check with my HPE-250 based Iona. One thing I noticed is that drivers will appear not as being installed, and my Board of Formosa was built with Intel Sata, who appears in Device Manager. What is the conflict? Will be that the Platinum support third party RAID card? My ultimate goal is to change put the hybrid with a SSD pro Samsung 840. I do a lot of video editing, so Sata 3 is a must,
Where I am now, it's that I found another Startech card on the HP store. This is the PEXSAT32, which has only two internal ports and not riders. He also said he uses native Windows drivers, as opposed to their. This will help? Or is the root cause of built in RAID Intel? Thanks for any help you guys can provide...
Yes! Who did the trick. It is the conflicting chipset. I had the PEXSAT32 this afternoon and it was immediately recognized. Only problem I had was that Windows said she doesn't have a driver for the Marvell chipset. I found it on the site of Startech. He ran and he was running. I goof and hooked my SSD who had BONE top pay-per-view, which resulted in a "training"not accessible "error.". Switched around and it loaded right up. Haven't really run of a landmark, but all my programs seem to run faster than ever out of the map.
Here is the driver for the card, in case someone needs it: http://www.startech.com/Cards-Adapters/HDD-Controllers/SATA-Cards/2-Port-PCI-Express-SATA-6-Gbps-Controller-Card~PEXSAT32#dnlds
Thanks for all your help. Now I will go to 32 GB of RAM, (I bought a Windows7 Pro update today) and the Samsung EVO. Think I might try to upgrade the PSU, the 600 stock me kind of worried about being hungry juice. I think a 850 watts. Have a great day and thanks again! Brian
-
"export to HDD' added to history
I just realized that, whenever I have export one or more images, the notice "export to disk (or e-mail, etc.)" is added to my list of history. This part of the activity of LR or is it caused by a plug-in that I might have, without knowing it.
I use imac i7, 8GB and 4.1 LR 10.7.5,
Thank you
Vince
Post edited by: vinsolo
No, this isn't the result of a plugin, this is normal behavior in Lr. You should also find a historic event for the import, print, metadata reading etc. Some have been made since the story was first court in Lr while others are more recent additions (usually at the request of the user).
-
Try adding new buttons «menu slider tutorial»
I'm doing the tutorial below...
http://www.Kirupa.com/developer/MX20...ith_slider.htm
And I'm trying to save time by opening the source file and change to take care of my images/etc. instead of starting from scratch.
So my question is: How can I create more than 4 buttons. I have attached a photo scrn shot if what I see when I press F9 / / Panel 'actions '...
I think the problem is when I create a new button, in this case, the 5 button, it does not have to be a subdirectory in scene 1 > things to Actions on the lower left...
I tried to convert a rectangle on the layer of the buttons in a button symbol and adding the appropriate code for it, but nothing works...
When I Ctrl + Enter to preview, the cursor moves of 4 boxes, but when I hover over the newly created 5th button the cursor jumps back just to button_1
Can someone help me? It would be greatly appreciatedDiscover the first chart below... Notice how he says line 4 of 4 / 1 Col... for each of the buttons 1-4 and line 2 4 / 25 Col?
Why is that what it's doing this? I need to know how to make the cursor to go 7 spaces, (3 more than the source files)
Two things to try. It's an AS2 tutorial, so it's all desogn/code AS2. So if you continue to have a problem after following through the following suggestion, you should post in the AS1/2 forum. The next suggestion is to get the most out of your time, rather than trying to save and do the tutorial and learn how the design is made so that you can be in a better position to understand how adjust the design to accommodate more than buttons.
-
Try adding a bookmark to existing PDF using iText
I copied the code I put on cfsearching for the concatenation of PDF files and all existing bookmarks ( http://cfsearching.blogspot.com/2007/12/getting-started-with-itext-part-17.html ), bought the book of iTextinAction, but am stuck when you try to add a new bookmark. I get the message " "
java.util.ArrayList cannot be cast in java.util.HashMap.
I think I'm not add my own bookmarks "custom" to the list of existing bookmarks correctly. I tried to change the list of existing bookmarks for an explicit vector (that was how the example was written) in a table instead, but still have this problem when I try to close my document. Here is the code that I modified. I'd appreciate any help. I'm not a Java programmer and am really struggling to understand how it works and how to make changes.
<cfscript>
savedErrorMessage = "";
// cfSearching: All file paths are relative to the current directory
fullPathToOutputFile = ExpandPath("./Concatenated.pdf");
arrayOfInputFiles = arrayNew(1);
arrayAppend(arrayOfInputFiles, ExpandPath("./Version control.pdf"));
arrayAppend(arrayOfInputFiles, ExpandPath("./iTextinAction,SecondEdition.pdf"));
try {
pageOffset = 0;
PdfReader = createObject("java", "com.lowagie.text.pdf.PdfReader");
SimpleBookmark = createObject("java", "com.lowagie.text.pdf.SimpleBookmark");
// cfSearching: Internally CF stores arrays as Vectors. So I chose to use an explict vector
// cfSearching: here, but you could use an array and CF array functions instead
allBookmarks = createObject("java", "java.util.Vector");
outlines = arrayNew(1);
arrayAppend(outlines, 'Pirate Jack');
for ( fileIndex = 1; fileIndex LTE arrayLen(arrayOfInputFiles); fileIndex = fileIndex + 1) {
// we create a reader for a certain document
reader = pdfReader.init( arrayOfInputFiles[fileIndex] );
reader.consolidateNamedDestinations();
// we retrieve the total number of pages
totalPages = reader.getNumberOfPages();
bookmarks = SimpleBookmark.getBookmark(reader);
if (IsDefined("bookmarks")) {
if (pageOffset neq 0) {
SimpleBookmark.shiftPageNumbers(bookmarks, javacast("int", pageOffset), javacast("null", 0));
}
allBookmarks.addAll(bookmarks);
}
pageOffset = pageOffset + totalPages;
if (fileIndex EQ 1) {
// step 1: creation of a document-object
document = createObject("java", "com.lowagie.text.Document");
document = document.init( reader.getPageSizeWithRotation( javacast("int", 1)) );
// step 2: we create a writer that listens to the document
outStream = createObject("java", "java.io.FileOutputStream").init( fullPathToOutputFile );
pdfWriter = createObject("java", "com.lowagie.text.pdf.PdfCopy").init(document, outStream);
// step 3: we open the document
document.open();
}
// step 4: we add content
for (pageIndex = 1; pageIndex LTE totalPages; pageIndex = pageIndex + 1) {
page = pdfWriter.getImportedPage(reader, javacast("int", pageIndex) );
pdfWriter.addPage(page);
}
formFields = reader.getAcroForm();
if (IsDefined("formFields")) {
pdfWriter.copyAcroForm(reader);
}
}
if (arraylen(outlines) gt 0) {
allBookmarks.addAll(outlines);
}
if (NOT allBookmarks.isEmpty()) {
pdfWriter.setOutlines( allBookmarks );
}
// step 5: we close the document
document.close();
WriteOutput("Finished!");
}
catch (java.language.Exception de) {
savedErrorMessage = de;
}
// cfSearching: close document and output stream objects
if (IsDefined("document")) {
document.close();
}
if (IsDefined("outputStream")) {
outputStream.close();
}
</cfscript>This entry is old _really_ ;-) CF8/9 introduced a bunch of new features which removed a lot of the need to plunge down into iText for basic pdf stuff. For example
contours = arrayNew (1);
arrayAppend (contours, 'Pirate Jack');But... the bookmarks are more than simple text. This is the reason why the error occurs. Bookmarks are like a structure and can consist of properties, such as a title, action, url, number of pages, style etc. It is not as simple as adding a string. To see what a bookmark object looks like CF, empty variable "bookmarks" just after the isDefined():
....
If (IsDefined ("bookmarks")) {}
use WriteDump() for CF8 to CF9 try http://www.cflib.org/udf/Dump
dump (bookmarks);....
}
-Leigh
-
PERC H330 and Raid 5, try adding another SATA drive raid 5 array
Hi all
I have one server PowerEdge T330 with 8 slots of disc and have currently 3 SATA drives running a raid 5 configuration. I have a virtual disk configured for Raid (must).
The operating system recognizes the disk and is able to use the resources...
My desire is to add another hard drive to the table (hard disks of the same size, same brand, etc.) with 4 disks without losing any data.
I looked in the settings of the iDrac and the only adjustment was to add the new disk as a global hot spare or a hot spare dedicated to the virtual drive.
I also looked in the BIOS and do not see a way to add the new drive.
Does anyone know how to increase capacity? I can blow the virtual drive if necessary and start over without problem. I intend to gradually accomplish this Act until adding 8 disks. (5 times).
Help!
Hello.
Management controllers RAID and tables is not made in the BIOS iDRAC or systems. For the management of the RAID (virtual disks) arrays, you have OpenManage Server Administrator (OMSA). If not installed, see the link: http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=TK61C once installed, go to-> Storage->-> H330 PERC controllers-> virtual disk--> sub tasks available-> select reconfigure and run-> then check a box to add the fourth disk on the next page. Follow the prompts and allows you to extend your range of RAID 5.
Maybe you are looking for
-
Re: Satellite A300-1 b 9 - cannot install updates for Vista and IE8
Hello I have a Toshiba Satellite A300 1 9 b I bought 9 months ago. It has Vista Home Premium 32 bit SP1. I have serious problems with the updates: 1 Microsoft .NET Framework 3.5 Service Pack 1 and the .NET Framework 3.5 Family Update (KB951847) x 86
-
This didn't happen with the version 3 x, nor with the previous v4. Using the arrow to the left and clicking on the previous page request usually works ok. It happens several times a day. Full error is XML parsing error: undefined entityLocation: jar:
-
Windows XP, keep get knocked offline
I kee4p get knocked offline, this isn't my provider (through 3 different modems workin very well).Yahoo.comchesscube.com all the 4 I'm knocked offlinePogo.comSTOPzilla.com
-
Following error message is displayed "could not load C:Users/Owner/Locals~1/temp\msavvzczh.exe how to remove the registry."
-
InterActual Manager on drive E
Whenever I click on "play" to play a video in my comper, Interactual manager with a blue icon appears with the name of the video. Also for 2 weeks, I couldn't play all the videos because of a notice which read the player had no encoding. It no long