Hi there, i have downloaded the small business starter kit to try and create a site for my mum. i have added all the items ect. but on the item page i want to have a paypal button. but not sure how i can do it as i get an error. i dont want to spam but have
not got a host to upload to... so basically
This is what each of my item code looks like below and i want to add a link to the same bit of the page but if i add extra code within this item tag it comes up with an error..
<item>
<id>60</id>
<visible>true</visible>
<title>Fishermans Friend</title>
<description>Description of the item</description>
<price>9.50</price>
<inStock>true</inStock>
<imageUrl>item02.jpg</imageUrl>
<imageAltText>BUY IT NOW</imageAltText>
<item/>
There is a an items.aspx page which has these details...
and i want to add a code generated by paypal that would create a button so people can add the item to the basket. Is there something i need to add in the .aspx file so i can do this on my items page.
Sorry for the spamming would be great if any of you guys could help
harryprowse
0 Points
1 Post
Small Business starter kit
Aug 28, 2010 09:15 PM|LINK
Hi there, i have downloaded the small business starter kit to try and create a site for my mum. i have added all the items ect. but on the item page i want to have a paypal button. but not sure how i can do it as i get an error. i dont want to spam but have not got a host to upload to... so basically
This is what each of my item code looks like below and i want to add a link to the same bit of the page but if i add extra code within this item tag it comes up with an error..
<item>
<id>60</id>
<visible>true</visible>
<title>Fishermans Friend</title>
<description>Description of the item</description>
<price>9.50</price>
<inStock>true</inStock>
<imageUrl>item02.jpg</imageUrl>
<imageAltText>BUY IT NOW</imageAltText>
<item/>
There is a an items.aspx page which has these details...
<div id="content-main-three-column">
<h2>
<asp:Label ID="LabelCurrentCategory" runat="server" Visible="true" Text=""></asp:Label></h2>
<asp:Panel ID="PanelCategories" runat="server" Visible="true">
<asp:ObjectDataSource ID="ObjectDataSourceCategories" runat="server" SelectMethod="GetChildCategories"
TypeName="Catalog">
<SelectParameters>
<asp:QueryStringParameter Name="parentCategoryId" QueryStringField="catId" Type="string"
DefaultValue="" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:GridView ID="GridViewCategories" runat="server" AutoGenerateColumns="False"
AllowPaging="true" PageSize="10" DataSourceID="ObjectDataSourceCategories" BorderWidth="0"
BorderColor="white">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID="Image1" CssClass="photo-border photo-float-left" runat="server" Width="90px"
Height="60px" ImageUrl='<%# "images/" + (string)Eval("ImageUrl") %>' AlternateText='<%#(string)Eval("ImageAltText")%>' />
<b>
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "Items.aspx?catId=" + (string)Eval("id") %>'>
<%# Eval("Title").ToString()%>
</asp:HyperLink>
</b>
<br />
<%#Eval("Description").ToString()%>
<br />
<br />
<asp:HyperLink ID="HyperLink5" runat="server" ImageUrl="images/arrow.gif" NavigateUrl='<%# "Items.aspx?catId=" + (string)Eval("id") %>' />
<asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl='<%# "Items.aspx?catId=" + (string)Eval("id") %>'>
View Product(s)
</asp:HyperLink>
<hr />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerSettings Mode="NumericFirstLast" Position="TopAndBottom" />
</asp:GridView>
</asp:Panel>
<!-- Child Items -->
<asp:Panel ID="PanelItems" runat="server" Visible="false">
<hr />
<asp:ObjectDataSource ID="ObjectDataSourceItems" runat="server" SelectMethod="GetChildItems"
TypeName="Catalog">
<SelectParameters>
<asp:QueryStringParameter Name="categoryId" QueryStringField="catId" Type="string"
DefaultValue="" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:GridView ID="GridViewItems" runat="server" AutoGenerateColumns="False" AllowPaging="true"
PageSize="10" DataSourceID="ObjectDataSourceItems" OnRowCreated="GridViewItems_RowCreated"
BorderWidth="0" BorderColor="white">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID="Image1" CssClass="photo-border photo-float-left" runat="server" Width="150px"
Height="100px" ImageUrl='<%# "images/" + (string)Eval("ImageUrl") %>' AlternateText='<%# (string)Eval("ImageAltText")%>' />
<h2>
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "ItemDetail.aspx?itemId=" + (string)Eval("Id") %>'>
<%# Eval("Title").ToString()%>
</asp:HyperLink></h2>
<br />
<%# Eval("Price","{0:C}")%>
<br />
<%# Eval("Description")%>
<br />
<br />
In Stock:
<%#(bool)Eval("InStock") ? "Yes" : "No"%>
<br />
<br />
<img src="images/arrow.gif" alt="arrow" />
<asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# "ItemDetail.aspx?itemId=" + (string)Eval("Id") %>'>
View More and Add to basket
</asp:HyperLink>
<hr />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerSettings Mode="NumericFirstLast" Position="TopAndBottom" />
</asp:GridView>
</asp:Panel>
and i want to add a code generated by paypal that would create a button so people can add the item to the basket. Is there something i need to add in the .aspx file so i can do this on my items page.
Sorry for the spamming would be great if any of you guys could help
THanks
harry
joec0814
Member
225 Points
67 Posts
Re: Small Business starter kit
Aug 30, 2010 07:49 PM|LINK
HTH
http://www.aspfree.com/c/a/C-Sharp/Creating-an-Online-Shopping-Cart-and-PayPal-System/
techjunki
Member
2 Points
11 Posts
Re: Small Business starter kit
Oct 10, 2011 07:04 AM|LINK
Hey would pls send me a link of small businees starter kit.