logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to forums.ablecommerce.com. Please use your AbleCommerce username and password to Login. Forums Registration.

Notification

Icon
Error

Options
Go to last post Go to first unread
sales17944678  
#1 Posted : Wednesday, July 3, 2019 2:46:41 PM(UTC)
sales17944678

Rank: Newbie

Groups: HelpDesk, Developers
Joined: 6/20/2019(UTC)
Posts: 2

Seeking to create 400+ products each with unique html content. Tried HTML Snippet widget, but that seems best suited for repeatable shared content, and I would have to create 400+ of them . I have to assume that Webpage Content widget is closer to my task, but once placed, will not allow for editing, and there is no documentation that I can find to guide me, so in absence of other data it appears to not be working.

Edited by moderator Monday, July 8, 2019 1:57:39 PM(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. Forums Registration.

MikeR  
#2 Posted : Wednesday, July 3, 2019 4:19:59 PM(UTC)
MikeR

Rank: Advanced Member

Groups: Administrators, Developers, Registered, HelpDesk, System
Joined: 10/18/2018(UTC)
Posts: 80

Was thanked: 1 time(s) in 1 post(s)
Hello,

Why is the product description or the more details not suitable for the task?

Please explain your goals and we can provide some assistance.
Thank you for your support!
Mike Randolph
AbleCommerce.com
sales17944678  
#3 Posted : Wednesday, July 3, 2019 4:36:26 PM(UTC)
sales17944678

Rank: Newbie

Groups: HelpDesk, Developers
Joined: 6/20/2019(UTC)
Posts: 2

99 percent of my hosted site on AC7 is free content, with dynamically built using nVelocity scripts from data sourced from the Product Template fields. Until I have the documentation in hand to build dynamically using AC9, am seeking tools to build the pages statically using whatever HTML editors given.

Examples:

http://store.redeeminglo...-Pfundsteinfont-P59.aspx

http://store.redeeminglo...lores-Fluddfont-P92.aspx

Here are two versions of rare content for sale in AC7 dynamic build, and AC9 static build using HTML Snippets:

http://store.redeeminglo...e-Praisersfont-P146.aspx

http://cmsdemo.ablecomme...terbach-and-the-Praisers



What is the word on Webpage widget functionality? What documentation exists?
MikeR  
#4 Posted : Friday, July 5, 2019 8:54:00 AM(UTC)
MikeR

Rank: Advanced Member

Groups: Administrators, Developers, Registered, HelpDesk, System
Joined: 10/18/2018(UTC)
Posts: 80

Was thanked: 1 time(s) in 1 post(s)
Hello,

The webpage widget is setup to be embedded into a webpage, we had not thought about embedding a webpage into a product. It would need a new attribute webpageid in order to do what you are wanting.
Thank you for your support!
Mike Randolph
AbleCommerce.com
judy13846  
#5 Posted : Monday, July 8, 2019 7:10:42 AM(UTC)
judy13846

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/7/2018(UTC)
Posts: 38

Can you use Razor syntax on the product page? For example, some code that was converted from AC5 vb code to use on _BuyProductDialog.cshtml. This is the best I could come up with without having to add code to cause site to recompile and with little documentation. It seems using Razor syntax could paralell what you would do in nVelocity.
Quote:

@model BuyProductDialogModel
@using CommerceBuilder.Products
@{
RequireScript("~/scripts/option_picker.js");
RequireScript("~/scripts/jquery-easing/jquery.easing.min.js");
RequireScript("~/scripts/custom/buy-product-dialog.js");
//jme 061319 custom from AC5 site
Product product = AbleContext.Container.Resolve<IProductRepository>().Load(Model.Product.Id);
string description = product.Description;
string extendedDescription = product.ExtendedDescription;
string mainStyle = "";
string mainKeywords = "";

string leftPart = "";
string rightPart = "";
int i = 0;
if (extendedDescription!=null && extendedDescription.Length > 0)
{

string[] parts = extendedDescription.Split("||".ToCharArray());

while (i < parts.Length-1)
{
leftPart = parts[i];
rightPart = "";
i = i += 1;
if(i<=parts.Length)
{
rightPart = parts[i+1];
}
if (leftPart == "webtext")
{
extendedDescription = rightPart;
}
else if (leftPart=="style")
{
mainStyle = rightPart;
}
else if(leftPart=="keywords")
{
mainKeywords = rightPart;
}
i = i += 1;

}

}

Later on, a couple of the variables are used.
Quote:

<span>@Html.Raw(mainStyle) @Html.Raw(description)</span>


Possibly something like the following:-last line is existing AC code I left in so you could see how to nest it
Quote:

if (product.TemplateFields.Count > 0)
{
foreach (ProductTemplateField tf in product.TemplateFields)
{

if (tf.InputField.Name == "xx")
{
<span>@Html.Raw(tf.InputValue)</span>
}
}
}

if (Model.ShowProductReviews && AbleContext.Current.Store.Settings.ProductReviewEnabled != CommerceBuilder.Users.UserAuthFilter.None)

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.