Contact Page and Button don't work, What's Up ?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
15 years ago
Hey What's Up !?

I'm using nopCommerce 1.05 and My Contact Page don't work
----------------------------------------------------------------------------------------------------
Check This Scenario:1

Name:        AnyUser
Email:        [email protected]
Message:   Any Message
------------------------------------------------------ When i click in SUBMIT the page is updated and nothing happens no message, my Log say:
Log type:   MailError
Severity:    11
Message:   Error sending "Contact us" email.
Exception:      System.Net.Mail.SmtpException: Nome de caixa de correio não permitido. A resposta do servidor foi: O ENDERECO DE E-MAIL UTILIZADO PARA ENVIAR MENSAGENS NAO E O MESMO QUE SE AUTENTICOU NA SUA CONTA/THE E-MAIL ADDRESS USED TO SEND MESSAGES IS NOT THE SAME AS THE ADDRESS THAT YOU AUTHENTICATED WITH (#5.7.1) em System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) em System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from) em System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) em System.Net.Mail.SmtpClient.Send(MailMessage message) em NopSolutions.NopCommerce.Common.BLL.Managers.MessageManager.SendEmail(String Subject, String Body, String From, ICollection`1 To, ICollection`1 bcc) na D:\Work\Own\NopCommerce\Solution\NopCommerce\Nop.Common\BLL\Managers\MessageManager.cs:linha 406 em NopSolutions.NopCommerce.Common.BLL.Managers.MessageManager.SendEmail(String Subject, String Body, String From, ICollection`1 To) na D:\Work\Own\NopCommerce\Solution\NopCommerce\Nop.Common\BLL\Managers\MessageManager.cs:linha 370 em NopSolutions.NopCommerce.Web.Modules.ContactUsControl.btnContactUs_Click(Object sender, EventArgs e)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Check This Scenario:2

Name:         AnyUser
Email:         [email protected]     My Store Admin Email
Message:     Any Message
------------------------------------------------------ When i click in SUBMIT the page is updated and the message is = MESSAGE SUBMITTED SUCCESSFULLY
But No message is received in my mailbox and no Log Error

Pay Attention THE MESSAGE IS ONLY SUBMITTED WHEN I WRITE THE Store Admin Email = [email protected]

Admin/Configuration/CommonSettings/Mail Settings:

Store Admin Email:              [email protected]
Host:                                  smtp.mydomain.com
Port:                                   25

User:                                  [email protected]
Note: EVERYTHING work fine when i use my mail adress in this field, if i change to my login in my webhost show this message: Failure sending mail.

Password:                            my mail box password
Enable SSL:                         False
Use default credentials:         False
------------------------------------------------------------------------------------------------
IN ADVANCE CHECK THIS OUT Button Jumping Out of Page:

http://www.hamasakistudio.com.br/Button_Jumping.jpg

Many Many Thank's for support Team - Still Power UP
15 years ago
Please set your smtp server in the admin control panel. Read the documentation before you argue. phaleaase
15 years ago
Man I Have Made It, I Think Is A Bug Maybe Not - nopCommerce 1.05

I'm Still Try So Hard

The Site Send Email Only This Page Don't Work  
----------------------------------------------------------------

Admin/Configuration/CommonSettings/Mail Settings:

Store Admin Email: [email protected]
Host: smtp.mydomain.com
Port: 25

User: [email protected]
Note: EVERYTHING work fine when i use my mail adress in this field, if i change to my login in my webhost show this message: Failure sending mail.

Password: my mail box password
Enable SSL: False
Use default credentials: False

IN ADVANCE CHECK THIS OUT Button Jumping Out of Page:

http://www.hamasakistudio.com.br/Button_Jumping.jpg
15 years ago
Works fine for me so don't believe to be a bug.

Can you clarify the following

Store Admin Email: (the address actually exists at your domain)    
Host: (you can resolve your host name from the server hosting nopcommerce)  
Port: (your host allows connections on port 25 (some do not))
User: (this can be any valid user on your domain, it doesn't matter who you use as it's only used to authenticate)  
Password: (the password for the above user)  

"if i change to my login in my webhost"

not quite sure what you mean by this.

As for the layout issues with the "Add to cart"  / "Add to wishlist" container, the problem is caused when there is not much text in the product description. This causes the table containing these buttons to float next to the image rather than appearing below.

I could understand if it was only an issue in IE (as with so many layout problems) but also have the same problem in Google chrome.

It doesn't help that so many individual tables are used for the layout so it makes it quite difficult to find the exact html element causing the problem. A quick solution (since new version will use CSS anyway) is to open up your product template (in Templates/Products) and wrap the productinfo control in a fixed height container (set to the height of your image):


        <div style="height: 300px">
            <nopcommerce:productinfo id="ctrlProductInfo" runat="server"></nopcommerce:productinfo>
        </div>


This will ensure that the other controls always appear below the image.

Hope this helps,
Ben
15 years ago
Thank's, retroviz i have made a search here in my country and the problem with SMTP has finished !

The problem with Buttons in Explorer 7 still killing my weak brain, I proceed with my tests !
----------------------------------------------------------------------------------------------------------------------
Here is the code of page:


Templates/Products/VariantsInGridWithoutTabs.ascx

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="VariantsInGridWithoutTabs.ascx.cs"
    Inherits="NopSolutions.NopCommerce.Web.Templates.Products.VariantsInGridWithoutTabs" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductVariantsInGrid" Src="~/Modules/Products/ProductVariantsInGrid.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductInfo" Src="~/Modules/Products/ProductInfo.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductCategoryBreadcrumb" Src="~/Modules/Products/ProductCategoryBreadcrumb.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductRating" Src="~/Modules/Products/ProductRating.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductEmailAFriendButton" Src="~/Modules/Products/ProductEmailAFriendButton.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductAddToCompareList" Src="~/Modules/Products/ProductAddToCompareList.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductSpecs" Src="~/Modules/Products/ProductSpecifications.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="RelatedProducts" Src="~/Modules/Products/RelatedProducts.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductReviews" Src="~/Modules/Products/ProductReviews.ascx" %>
<div class="hl">
    <img src="<%=Page.ResolveUrl("~/images/sp.gif")%>" /></div>
<div style="position: relative; float: left; height: 330px; width: 100%">
    <nopCommerce:ProductCategoryBreadcrumb ID="ctrlProductCategoryBreadcrumb" runat="server">
    </nopCommerce:ProductCategoryBreadcrumb>
    <br />
    <nopCommerce:ProductInfo ID="ctrlProductInfo" runat="server"></nopCommerce:ProductInfo>
    <br />
    <nopCommerce:ProductRating ID="ctrlProductRating" runat="server"></nopCommerce:ProductRating>
    <br />
    <nopCommerce:ProductEmailAFriendButton ID="ctrlProductEmailAFriendButton" runat="server">
    </nopCommerce:ProductEmailAFriendButton>
    &nbsp;
    <nopCommerce:ProductAddToCompareList ID="ctrlProductAddToCompareList" runat="server">
    </nopCommerce:ProductAddToCompareList>
    <br />
    <nopCommerce:ProductVariantsInGrid ID="ctrlProductVariantsInGrid" runat="server">
    </nopCommerce:ProductVariantsInGrid>
    <nopCommerce:ProductSpecs ID="ctrlProductSpecs" runat="server"></nopCommerce:ProductSpecs>
    <nopCommerce:RelatedProducts ID="ctrlRelatedProducts" runat="server"></nopCommerce:RelatedProducts>
    <nopCommerce:ProductReviews ID="ctrlProductReviews" runat="server" ShowWriteReview="false"
        ShowProductReviewHeader="true"></nopCommerce:ProductReviews>
</div>


---------------------------------------------------------------------------------------------------------------------------------------------------
Templates/Products/VariantsInGridWithTabs.ascx

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="VariantsInGridWithTabs.ascx.cs"
    Inherits="NopSolutions.NopCommerce.Web.Templates.Products.VariantsInGridWithTabs" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductVariantsInGrid" Src="~/Modules/Products/ProductVariantsInGrid.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductInfo" Src="~/Modules/Products/ProductInfo.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductCategoryBreadcrumb" Src="~/Modules/Products/ProductCategoryBreadcrumb.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductRating" Src="~/Modules/Products/ProductRating.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductEmailAFriendButton" Src="~/Modules/Products/ProductEmailAFriendButton.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductAddToCompareList" Src="~/Modules/Products/ProductAddToCompareList.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductSpecs" Src="~/Modules/Products/ProductSpecifications.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="RelatedProducts" Src="~/Modules/Products/RelatedProducts.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductReviews" Src="~/Modules/Products/ProductReviews.ascx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<div class="hl">
    <img src="<%=Page.ResolveUrl("~/images/sp.gif")%>" /></div>
<div style="position: relative; float: left; height: 330px; width: 100%">
    <nopCommerce:ProductCategoryBreadcrumb ID="ctrlProductCategoryBreadcrumb" runat="server">
    </nopCommerce:ProductCategoryBreadcrumb>
    <br />
    <nopCommerce:ProductInfo ID="ctrlProductInfo" runat="server"></nopCommerce:ProductInfo>
    <br />
    <nopCommerce:ProductRating ID="ctrlProductRating" runat="server"></nopCommerce:ProductRating>
    <br />
    <nopCommerce:ProductEmailAFriendButton ID="ctrlProductEmailAFriendButton" runat="server">
    </nopCommerce:ProductEmailAFriendButton>
    &nbsp;
    <nopCommerce:ProductAddToCompareList ID="ctrlProductAddToCompareList" runat="server">
    </nopCommerce:ProductAddToCompareList>
    <br />
    <nopCommerce:ProductVariantsInGrid ID="ctrlProductVariantsInGrid" runat="server">
    </nopCommerce:ProductVariantsInGrid>
    <nopCommerce:RelatedProducts ID="ctrlRelatedProducts" runat="server"></nopCommerce:RelatedProducts>
    <ajaxToolkit:TabContainer runat="server" ID="ProductsTabs" ActiveTabIndex="0">
        <ajaxToolkit:TabPanel runat="server" ID="pnlProductReviews" HeaderText="Product reviews">
            <ContentTemplate>
                <nopCommerce:ProductReviews ID="ctrlProductReviews" runat="server" ShowWriteReview="true"
                    ShowProductReviewHeader="false"></nopCommerce:ProductReviews>
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
        <ajaxToolkit:TabPanel runat="server" ID="pnlProductSpecs" HeaderText="Product specs">
            <ContentTemplate>
                <nopCommerce:ProductSpecs ID="ctrlProductSpecs" runat="server"></nopCommerce:ProductSpecs>
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
    </ajaxToolkit:TabContainer>
</div>
--------------------------------------------
Im on my grind like all the time
15 years ago
so just wrap:
<nopCommerce:ProductInfo ID="ctrlProductInfo" runat="server"></nopCommerce:ProductInfo>

with fixed height container:

<div style="height: 300px">
<nopCommerce:ProductInfo ID="ctrlProductInfo" runat="server"></nopCommerce:ProductInfo>
</div>

That's it.
15 years ago
Sorry retroviz i think this method don´t work, the page now is cutting the button look:

http://www.hamasakistudio.com.br/Button_Cutting.jpg

My field product information is empty that's the way my site work, no information no description only the name and price
nothing more the consequence is this problem:

Take a look at this 2 files: nopCommerce 1.05

Templates/Products/VariantsInGridWithoutTabs.ascx

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="VariantsInGridWithoutTabs.ascx.cs"
    Inherits="NopSolutions.NopCommerce.Web.Templates.Products.VariantsInGridWithoutTabs" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductVariantsInGrid" Src="~/Modules/Products/ProductVariantsInGrid.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductInfo" Src="~/Modules/Products/ProductInfo.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductCategoryBreadcrumb" Src="~/Modules/Products/ProductCategoryBreadcrumb.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductRating" Src="~/Modules/Products/ProductRating.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductEmailAFriendButton" Src="~/Modules/Products/ProductEmailAFriendButton.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductAddToCompareList" Src="~/Modules/Products/ProductAddToCompareList.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductSpecs" Src="~/Modules/Products/ProductSpecifications.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="RelatedProducts" Src="~/Modules/Products/RelatedProducts.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductReviews" Src="~/Modules/Products/ProductReviews.ascx" %>
<div class="hl">
    <img src="<%=Page.ResolveUrl("~/images/sp.gif")%>" /></div>
<div style="position: relative; float: left; width: 100%"> When i replace this tags with ONLY! <div style="height: 300px"> the page cut the button.
---------------------------------------------------------------------------------------------------------------------------------------------------------
Templates/Products/VariantsInGridWithTabs.ascx

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="VariantsInGridWithTabs.ascx.cs"
    Inherits="NopSolutions.NopCommerce.Web.Templates.Products.VariantsInGridWithTabs" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductVariantsInGrid" Src="~/Modules/Products/ProductVariantsInGrid.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductInfo" Src="~/Modules/Products/ProductInfo.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductCategoryBreadcrumb" Src="~/Modules/Products/ProductCategoryBreadcrumb.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductRating" Src="~/Modules/Products/ProductRating.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductEmailAFriendButton" Src="~/Modules/Products/ProductEmailAFriendButton.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductAddToCompareList" Src="~/Modules/Products/ProductAddToCompareList.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductSpecs" Src="~/Modules/Products/ProductSpecifications.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="RelatedProducts" Src="~/Modules/Products/RelatedProducts.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductReviews" Src="~/Modules/Products/ProductReviews.ascx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<div class="hl">
    <img src="<%=Page.ResolveUrl("~/images/sp.gif")%>" /></div>
<div style="position: relative; float: left; width: 100%"> When i replace this tags with ONLY! <div style="height: 300px"> the page cut the button.

Im on my grind like all the time
15 years ago
Hi,

Im not sure you understood my response.

I did not say to replace the parent container:

<div style="position: relative; float: left; width: 100%">

as this wraps all the product info.

What I said was to wrap <nopCommerce:ProductInfo ID="ctrlProductInfo" runat="server"></nopCommerce:ProductInfo> with a **NEW** container like:

<div style="height: 300px">
<nopCommerce:ProductInfo ID="ctrlProductInfo" runat="server"></nopCommerce:ProductInfo>
</div>

If you don't have any product info (and just a name) then try wrapping some of the other controls in a fixed height container e.g.:

<div style="height: 300px">
<nopCommerce:ProductRating ID="ctrlProductRating" runat="server"></nopCommerce:ProductRating>
<br />
<nopCommerce:ProductEmailAFriendButton ID="ctrlProductEmailAFriendButton" runat="server">
</nopCommerce:ProductEmailAFriendButton>
&nbsp;
<nopCommerce:ProductAddToCompareList ID="ctrlProductAddToCompareList" runat="server">
</nopCommerce:ProductAddToCompareList>
</div>

That should work.

If it doesn't it's only a case of moving the container around / basic HTML so shouldn't be too difficult to figure it out.

Good luck!
Ben
15 years ago
Brother,

Best way if you are not able to find bug in design

plz follow this steps

make some changes in [quote]Templates\Products\VariantsInGridWithTabs.ascx[/quote]
do all controls as given below where i had given color for div. change bgcolor & if it is possible do not give height or width now just apply color

this the only way u can find up ur problems

<div id="divctrlProductVariantsInGrid" style="background-color: #66FFFF; height: 180px; width: 100%;">
        <OaaCommerce:ProductVariantsInGrid ID="ctrlProductVariantsInGrid" runat="server">
        </OaaCommerce:ProductVariantsInGrid>
</div>


Your jumping button is comming from ProductVariantsInGrid so do this first.

hope we can see your web-shop soon & give u best of congrats. so hurry..

Yours
15 years ago
You can try firebug (getfirebug.com)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.