楽天スマホページの仕様が変わったのか?
お気に入りボタンが「登録に失敗しました」とエラーで機能しなくなったので、修正はどこをどうすれば良いか教えてくださいm(__)m
--html--
<script src="https//www.rakuten.ne.jp/gold/SHOP-URL/pyokotto_css/sp_favorite_button.js?test4" type="text/javascript" charset="UTF-8" ="" ></script >
<link rel="stylesheet" ="" href="https//www.rakuten.ne.jp/gold/SHOP-URL/banner.css">
<div ="" id="floatingThirdButton">
<a>★<br>お気に入り<br>追加</a>
</div ="">
<div ="" id="floatingThirdButton2">
<a ="" href="javascript:(function(){document.onSusu.submit();})();">●<br>LINEで<br>送る</a =""><!---->
</div ="">
--js--
jQuery(function($){
if( $('#floatingCartContainer').length === 0 ) $('#floatingThirdButton, #floatingThirdButton2').hide();
$('#floatingThirdButton, #floatingThirdButton2').appendTo('#floatingCartContainer');
$('#floatingThirdButton a').attr('href', '
https://my.bookmark.rakuten.co.jp/?func=reg&shop_bid=' + $("meta[property='apprakuten:shop_id']").attr("content") + '&itype=1&svid=101&iid=' + $("meta[property='apprakuten:item_id']").attr("content") );
});
--css--
#floatingCartContainer .cartButton {
width: calc( 50vw - 56px ) !important;
}
#floatingCartContainer .cartButton>a {
font-size: 11px !important;
line-height: 16px;
}
div#floatingThirdButton {
float: left;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
width: 52px;
height: 52px;
background: #f18c09;
}
div#floatingThirdButton a{
display: block;
padding-top: 0.4em;
color: #FFF;
text-align: center;
font-size: 65%;
}
div#floatingThirdButton2 {
float: left;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
width: 52px;
height: 52px;
background: #49a40c;
}
div#floatingThirdButton2 a{
display: block;
padding-top: 0.4em;
color: #FFF;
text-align: center;
font-size: 65%;
}
よろしくお願いします☆